
/* BronzeRush v5.0 — scene based show flow */

html,body{width:100%;height:100%;overflow:hidden}
body{
  min-height:100vh;
  background:
    radial-gradient(circle at 50% -20%,rgba(205,127,50,.18),transparent 38%),
    #080706
}
.show-header{
  height:58px;
  position:relative;
  z-index:80;
  padding:8px 14px;
}
.show-header .logo{width:38px;height:38px;border-radius:10px}
.show-header h1{font-size:18px}
.show-header .sub{font-size:10px}

.show-shell{
  position:relative;
  width:min(1660px,100%);
  height:calc(100vh - 58px);
  margin:0 auto;
  overflow:hidden;
  padding:0 16px 14px;
}

.stage-hud{
  position:absolute;
  top:13px;
  left:30px;
  right:30px;
  z-index:28;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  pointer-events:none;
}
.stage-hud .phase{box-shadow:0 8px 28px rgba(0,0,0,.28)}
.stage-timer{
  min-width:118px;
  text-align:right;
  color:#fff5e9;
  font-size:clamp(30px,3vw,48px);
  line-height:1;
  font-weight:1000;
  font-variant-numeric:tabular-nums;
  text-shadow:0 5px 22px #000;
}

.show-scene{
  position:absolute;
  inset:0 16px 14px;
  z-index:1;
  opacity:0;
  visibility:hidden;
  transform:scale(.985);
  pointer-events:none;
  transition:
    opacity .48s ease,
    transform .58s cubic-bezier(.2,.8,.2,1),
    visibility 0s linear .58s;
}
.show-scene.active{
  z-index:5;
  opacity:1;
  visibility:visible;
  transform:scale(1);
  pointer-events:auto;
  transition-delay:0s;
}

.scene-heading{
  height:132px;
  padding-top:58px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
}
.scene-kicker{
  color:#f2a85f;
  font-size:11px;
  font-weight:1000;
  letter-spacing:3.2px;
}
.scene-heading h2{
  margin-top:4px;
  font-size:clamp(32px,3.6vw,56px);
  line-height:.96;
  letter-spacing:-1px;
  text-shadow:0 7px 28px rgba(0,0,0,.45)
}
.scene-heading p{
  margin-top:7px;
  color:#bfae9f;
  font-size:12px;
}

/* ---------------- Voting ---------------- */

.vote-show-grid{
  height:calc(100% - 142px);
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(0,1fr));
  gap:10px;
  padding:0 8px 8px;
}
.vote-character-card{
  --accent:#cd7f32;
  position:relative;
  min-width:0;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--accent) 54%,#402818 46%);
  border-radius:17px;
  background:
    radial-gradient(circle at 50% 25%,color-mix(in srgb,var(--accent) 22%,transparent),transparent 45%),
    linear-gradient(180deg,#1a130e,#0c0907);
  box-shadow:0 16px 36px rgba(0,0,0,.28);
  opacity:0;
  transform:translateY(22px) scale(.96);
  animation:voteEnter .42s ease forwards;
  animation-delay:var(--delay);
}
@keyframes voteEnter{
  to{opacity:1;transform:none}
}
.vote-character-card:before{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,.11),transparent 28%);
  pointer-events:none
}
.vote-character-card.selected{
  outline:2px solid color-mix(in srgb,var(--accent) 72%,#fff 16%);
  box-shadow:0 18px 48px rgba(0,0,0,.36),0 0 32px color-mix(in srgb,var(--accent) 30%,transparent)
}
.vote-art{
  height:calc(100% - 82px);
  min-height:100px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  position:relative;
  background:rgba(0,0,0,.12)
}
.vote-art img{
  width:100%;height:100%;object-fit:cover;
  object-position:50% 15%;
  transform:scale(1.13)
}
.vote-emoji{
  font-size:clamp(52px,5vw,92px);
  filter:drop-shadow(0 12px 18px rgba(0,0,0,.45))
}
.vote-info{
  height:82px;
  padding:8px 10px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  gap:2px 7px;
  align-items:center
}
.vote-name{
  font-size:16px;
  font-weight:1000;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.vote-trait{
  font-size:9px;color:#cdbbad;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.vote-count{
  grid-row:1/span 2;
  grid-column:2;
  align-self:center;
  text-align:right;
  color:#ffb267;
  font-size:11px;
  font-weight:1000
}
.vote-action{
  position:absolute;
  inset:auto 8px 8px;
  opacity:0;
  transform:translateY(6px);
  transition:.2s ease
}
.vote-character-card:hover .vote-action,
.vote-character-card.selected .vote-action{
  opacity:1;transform:none
}
.vote-action button{
  width:100%;
  padding:8px;
  font-size:11px;
  background:linear-gradient(#5a3415,#321b0b)
}

/* ---------------- Prediction ---------------- */

.prediction-heading{height:150px}
.prediction-show-grid{
  height:calc(100% - 160px);
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
  padding:0 6px 8px;
  align-items:stretch
}
.show-predict-card{
  --accent:#cd7f32;
  min-width:0;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border-radius:20px;
  border:1px solid color-mix(in srgb,var(--accent) 58%,#50301b 42%);
  background:
    radial-gradient(circle at 50% 24%,color-mix(in srgb,var(--accent) 22%,transparent),transparent 42%),
    linear-gradient(180deg,#1b130e,#0b0806 72%);
  box-shadow:0 24px 52px rgba(0,0,0,.34);
  opacity:0;
  transform:translateY(-90px) scale(1.16) rotate(-2deg);
  animation:cardSlam .48s cubic-bezier(.18,.92,.24,1.18) forwards;
  animation-delay:var(--delay)
}
@keyframes cardSlam{
  0%{opacity:0;transform:translateY(-90px) scale(1.16) rotate(-2deg)}
  72%{opacity:1;transform:translateY(6px) scale(.985) rotate(.4deg)}
  100%{opacity:1;transform:none}
}
.show-predict-card.locked{filter:grayscale(.72) brightness(.55)}
.show-predict-card.picked{
  filter:none;
  outline:3px solid color-mix(in srgb,var(--accent) 70%,#fff 18%);
  box-shadow:0 28px 62px rgba(0,0,0,.42),0 0 42px color-mix(in srgb,var(--accent) 32%,transparent)
}
.predict-art{
  position:relative;
  flex:1;
  min-height:210px;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:rgba(0,0,0,.15)
}
.predict-art img{
  width:100%;height:100%;
  display:block;
  object-fit:cover;
  object-position:50% 15%;
  transform:scale(1.08)
}
.predict-art .vote-emoji{font-size:96px}
.predict-odds{
  position:absolute;
  top:10px;right:10px;
  padding:8px 10px;
  border-radius:999px;
  color:#ffd29d;
  background:rgba(8,6,5,.86);
  border:1px solid color-mix(in srgb,var(--accent) 50%,#fff 10%);
  font-weight:1000;
  font-size:14px
}
.predict-info-btn{
  position:absolute;
  top:10px;left:10px;
  width:31px;height:31px;
  border-radius:999px;
  padding:0;
  display:grid;place-items:center;
  z-index:2;
  background:rgba(8,6,5,.84)
}
.predict-copy{
  padding:10px 12px 6px;
}
.predict-name{
  font-size:22px;font-weight:1000;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.predict-trait{
  margin-top:3px;
  color:#cdbdaf;
  font-size:10px;
  min-height:14px
}
.predict-controls{
  padding:8px 10px 11px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 1fr;
  gap:7px
}
.predict-controls input{
  width:100%;
  min-width:0;
  background:#0c0907;
  color:#fff;
  border:1px solid #49301e;
  border-radius:10px;
  padding:10px;
  font-weight:1000
}
.predict-controls .predict-btn{
  width:100%;
  font-size:12px
}
.predict-votes{
  grid-column:1/-1;
  text-align:center;
  font-size:9px;
  color:#aa998a;
  font-weight:900;
  letter-spacing:.6px
}

/* ---------------- Countdown ---------------- */

.countdown-scene{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:
    radial-gradient(circle at 50% 45%,rgba(205,127,50,.19),transparent 32%);
}
.countdown-kicker{
  color:#d9c3af;
  font-size:clamp(15px,1.5vw,24px);
  font-weight:1000;
  letter-spacing:5px
}
.countdown-number{
  margin-top:8px;
  font-size:clamp(150px,25vw,360px);
  line-height:.82;
  font-weight:1000;
  color:#fff4e9;
  text-shadow:
    0 0 35px rgba(205,127,50,.28),
    0 18px 60px rgba(0,0,0,.65)
}
.countdown-number.punch{
  animation:countPunch .52s cubic-bezier(.12,.8,.2,1)
}
@keyframes countPunch{
  0%{transform:scale(1.45);opacity:.1}
  45%{transform:scale(.94);opacity:1}
  100%{transform:scale(1)}
}
.locked-pick{
  margin-top:22px;
  min-height:40px;
  color:#ffcb94;
  font-size:15px;
  font-weight:1000
}

/* ---------------- Race ---------------- */

.race-show-scene{padding-top:64px}
.race-show-layout{
  height:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:13px
}
.race-stage{
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:center
}
.show-canvas{
  width:min(100%, calc((100vh - 255px) * 16 / 9));
  aspect-ratio:16/9 !important;
  flex:0 0 auto;
  min-height:auto;
  max-height:none!important;
  margin:0 auto
}
.show-canvas canvas{
  width:100%;
  height:100%;
  display:block
}
.show-event{
  width:min(100%, calc((100vh - 255px) * 16 / 9));
  min-height:54px;
  margin:9px auto 0;
  font-size:16px
}
.your-pick-bar{
  width:min(100%, calc((100vh - 255px) * 16 / 9));
  min-height:40px;
  margin:7px auto 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px solid #3e2a1c;
  border-radius:12px;
  background:#100d0a;
  font-size:12px
}
.your-pick-label{
  color:#bda99a;
  font-size:9px;
  letter-spacing:1.8px;
  font-weight:1000
}
.race-rail{
  min-height:0;
  padding:14px;
  border:1px solid #3b291d;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(31,23,17,.98),rgba(19,14,11,.98));
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow:hidden
}
.rail-block{
  min-height:0
}
.rail-block h3{font-size:16px}
.rail-grow{
  flex:1;
  display:flex;
  flex-direction:column
}
.race-scroll{overflow:auto}
.race-rail .feed{max-height:none;flex:1}
.compact-rail-info{
  padding-top:10px;
  border-top:1px solid #3b291d
}
.compact-rail-info #sideContent .choice{
  margin-top:7px;
  padding:7px
}
.race-result-overlay{
  position:absolute;
  inset:0;
  z-index:18;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:
    radial-gradient(circle at 50% 42%,rgba(205,127,50,.28),transparent 30%),
    rgba(5,4,3,.76);
  backdrop-filter:blur(4px);
  opacity:0;
  visibility:hidden;
  transition:.38s ease
}
.race-result-overlay.show{opacity:1;visibility:visible}
.result-kicker{
  color:#ffb76d;
  letter-spacing:4px;
  font-size:12px;
  font-weight:1000
}
.result-winner{
  margin-top:6px;
  font-size:clamp(44px,6vw,88px);
  line-height:.92;
  font-weight:1000
}
.result-message{
  margin-top:14px;
  max-width:700px;
  color:#f4ddc8;
  font-size:18px;
  font-weight:900
}
.result-next{
  margin-top:22px;
  color:#a99686;
  font-size:11px;
  font-weight:1000;
  letter-spacing:1.5px
}

/* ---------------- Full-screen transitions ---------------- */

.show-transition{
  position:absolute;
  inset:0 16px 14px;
  z-index:50;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#080706;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .34s ease,visibility 0s linear .36s
}
.show-transition.show{
  opacity:1;
  visibility:visible;
  transition-delay:0s
}
.transition-glow{
  position:absolute;
  width:650px;height:650px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(205,127,50,.28),transparent 66%);
  transform:scale(.5);
  opacity:0
}
.show-transition.show .transition-glow{
  animation:transitionGlow 1.4s ease forwards
}
@keyframes transitionGlow{
  0%{opacity:0;transform:scale(.4)}
  35%{opacity:1}
  100%{opacity:.28;transform:scale(1.35)}
}
.transition-content{
  position:relative;
  text-align:center;
  transform:scale(.85);
  opacity:0
}
.show-transition.show .transition-content{
  animation:transitionTitle .55s .18s cubic-bezier(.2,.9,.2,1.15) forwards
}
@keyframes transitionTitle{
  to{opacity:1;transform:scale(1)}
}
.transition-kicker{
  color:#eaa25b;
  font-size:12px;
  font-weight:1000;
  letter-spacing:4px
}
.transition-title{
  margin-top:7px;
  font-size:clamp(46px,7vw,104px);
  line-height:.88;
  font-weight:1000;
  letter-spacing:-3px;
  text-shadow:0 12px 50px rgba(0,0,0,.65)
}
.transition-sub{
  margin-top:17px;
  color:#c9b7a8;
  font-size:14px;
  font-weight:800
}

.compat-hidden{
  display:none!important
}

/* Keep the info modal above show transitions when opened deliberately. */
.info-modal{z-index:90}

@media(max-width:1350px){
  .vote-show-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}
  .prediction-show-grid{gap:8px}
  .predict-name{font-size:18px}
  .race-show-layout{grid-template-columns:minmax(0,1fr) 280px}
}
@media(max-width:1000px){
  html,body{overflow:auto}
  .show-shell{height:auto;min-height:calc(100vh - 58px);overflow:visible}
  .show-scene{position:relative;inset:auto;display:none;min-height:700px}
  .show-scene.active{display:block}
  .vote-show-grid{grid-template-columns:repeat(3,1fr);height:auto}
  .prediction-show-grid{grid-template-columns:repeat(2,1fr);height:auto}
  .race-show-layout{grid-template-columns:1fr}
  .stage-hud{position:fixed;top:68px}
}


/* v5.0.1 — broadcast camera / aspect-ratio fix
   The race viewport now stays true 16:9 so the oval and cars are not stretched.
   The race HUD bars use the same effective width as the canvas. */

/* =========================================================
   BRONZERUSH MASTER RACER CARD V1
   Standard artwork size: 768 x 2048 px (3:8)

   ONE IMAGE / TWO VIEWS:
   - VOTING: top hero crop only (name + driver/car)
   - PREDICTION: full master card scaled to fit
   ========================================================= */


/* ---------- VOTING VIEW ----------
   Only portrait-based/master-card racers use this crop.
   Emoji fallback cards keep their existing layout.
*/
.vote-character-card:has(.vote-art img) .vote-art{
  /* 768 / ~970 = ~0.79.
     This window deliberately stops before the stat block. */
  width:100%;
  height:auto;
  aspect-ratio:0.79;
  min-height:0;
  flex:0 0 auto;
  overflow:hidden;
  align-items:flex-start;
  justify-content:center;
  background:#090705;
}

.vote-character-card:has(.vote-art img) .vote-art img{
  position:absolute;
  top:0;
  left:0;

  /* Master card fills the slot by width.
     Height remains natural, so we crop vertically — never stretch. */
  width:100%;
  height:auto;
  max-width:none;

  object-fit:initial;
  object-position:initial;

  /* Remove the old portrait zoom completely. */
  transform:none;
}

/* Keep the game's own name/votes UI anchored at the bottom.
   The space between hero crop and info becomes intentional breathing room. */
.vote-character-card:has(.vote-art img) .vote-info{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:82px;
  z-index:3;

  background:
    linear-gradient(
      180deg,
      rgba(8,6,5,0) 0%,
      rgba(8,6,5,.86) 24%,
      rgba(8,6,5,.98) 100%
    );
}

/* Fade the lower edge of the hero crop into the card background. */
.vote-character-card:has(.vote-art img) .vote-art:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:44px;
  pointer-events:none;
  background:linear-gradient(180deg,transparent,#0c0907 96%);
}


/* ---------- PREDICTION VIEW ----------
   Full master card visible. No crop, no artificial zoom.
*/
.show-predict-card:has(.predict-art img) .predict-art{
  flex:1 1 auto;
  min-height:0;
  padding:5px 5px 0;
  overflow:hidden;
  align-items:flex-start;
  justify-content:center;

  background:
    radial-gradient(
      circle at 50% 20%,
      color-mix(in srgb,var(--accent) 12%,transparent),
      transparent 42%
    ),
    #090705;
}

.show-predict-card:has(.predict-art img) .predict-art img{
  display:block;

  /* Fit the WHOLE 3:8 master card inside the available artwork area. */
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;

  object-fit:contain;
  object-position:top center;

  /* Critical: no old portrait zoom / stretching. */
  transform:none;
}

/* Prediction HTML controls remain visually separate from the artwork.
   The image contains racer information; the game owns odds/stake/lock-in. */
.show-predict-card:has(.predict-art img) .predict-copy{
  position:relative;
  z-index:3;
  background:linear-gradient(180deg,rgba(11,8,6,.72),#0b0806 55%);
}

.show-predict-card:has(.predict-art img) .predict-controls{
  position:relative;
  z-index:3;
  background:#0b0806;
}

/* Make overlay controls readable without hiding the card artwork. */
.show-predict-card:has(.predict-art img) .predict-info-btn,
.show-predict-card:has(.predict-art img) .predict-odds{
  z-index:6;
  backdrop-filter:blur(5px);
}


/* ---------- MASTER CARD SAFE AREA ----------
   Keep all generated text inside ~8% side margins.
   This is documentation for future racer artwork and does not alter layout.

   ART STANDARD:
   Canvas:       768 x 2048 px
   Ratio:        3:8
   Side safe:    ~62 px minimum
   Hero zone:    y = 0 .. ~970 px
   Detail zone:  y = ~970 .. 2048 px

   VOTE uses approximately the hero zone.
   PREDICTION displays the complete 2048 px card.
*/


/* =========================================================
   VOTING BUTTON FIX
   Keeps voting controls above MASTER RACER CARD artwork.
   ========================================================= */

/* Reserve a clean bottom UI area on every voting card. */
.vote-character-card .vote-info{
  position:absolute;
  left:0;
  right:0;
  bottom:42px;
  height:62px;
  z-index:7;
  padding:7px 9px;

  background:
    linear-gradient(
      180deg,
      rgba(8,6,5,0) 0%,
      rgba(8,6,5,.82) 24%,
      rgba(8,6,5,.98) 100%
    );
}

/* The vote button is always visible and always clickable. */
.vote-character-card .vote-action{
  position:absolute;
  left:8px;
  right:8px;
  bottom:7px;
  z-index:10;

  opacity:1;
  transform:none;
  pointer-events:auto;
}

/* Override the old hover-only behavior. */
.vote-character-card:hover .vote-action,
.vote-character-card.selected .vote-action{
  opacity:1;
  transform:none;
}

.vote-character-card .vote-action button{
  width:100%;
  min-height:29px;
  padding:6px 8px;
  font-size:10px;
  line-height:1;
  position:relative;
  z-index:11;
}

/* Master artwork may visually continue behind the UI, but can never
   intercept clicks intended for the voting controls. */
.vote-character-card .vote-art,
.vote-character-card .vote-art img,
.vote-character-card .vote-art:after{
  pointer-events:none;
}

/* On master-card racers, keep the lower fade above the artwork but
   below the actual game controls. */
.vote-character-card:has(.vote-art img) .vote-art:after{
  z-index:2;
}

.vote-character-card:has(.vote-art img) .vote-info{
  bottom:42px;
  height:62px;
  z-index:7;
}

/* Selected racer remains visually clear after the vote is locked. */
.vote-character-card.selected .vote-action button{
  filter:brightness(1.08);
}


/* =========================================================
   BRONZERUSH MOBILE V1 — release candidate
   Goal: phone-first usability without changing game logic.
   ========================================================= */

@media (max-width: 700px){
  html,body{
    width:100%;
    min-height:100%;
    height:auto;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior-x:none;
  }

  body{
    -webkit-text-size-adjust:100%;
    touch-action:pan-y;
  }

  /* Header: compact two-line friendly bar for logo + Help + Player + Coins. */
  .show-header{
    height:auto;
    min-height:58px;
    padding:7px 8px;
    gap:6px;
    flex-wrap:wrap;
    position:sticky;
    top:0;
    z-index:120;
  }
  .show-header .brand{
    min-width:0;
    margin-right:auto;
    gap:7px;
  }
  .show-header .logo{
    width:32px;
    height:32px;
    border-radius:8px;
    font-size:12px;
  }
  .show-header h1{font-size:15px;line-height:1}
  .show-header .sub{font-size:8px;margin-top:2px;white-space:nowrap}
  .show-header .balance{
    order:4;
    width:100%;
    text-align:center;
    padding:6px 10px;
    font-size:11px;
    line-height:1;
  }
  header.show-header .br-help-btn,
  header.show-header .br-player-btn{
    padding:7px 8px!important;
    min-height:32px!important;
    font-size:9px!important;
  }

  /* Shell/HUD: no desktop fixed overlay covering content. */
  .show-shell{
    width:100%;
    height:auto;
    min-height:calc(100svh - 88px);
    padding:0 7px 12px;
    overflow:visible;
  }
  .stage-hud{
    position:absolute;
    top:7px;
    left:12px;
    right:12px;
    z-index:28;
    align-items:center;
  }
  .stage-hud .phase{
    padding:5px 7px;
    font-size:8px;
    letter-spacing:.5px;
  }
  .stage-hud .sub{
    margin-top:3px!important;
    max-width:235px;
    font-size:8px;
    line-height:1.2;
  }
  .stage-timer{
    min-width:auto;
    font-size:26px;
  }

  .show-scene{
    position:relative;
    inset:auto;
    display:none;
    width:100%;
    min-height:0;
    opacity:1;
    visibility:visible;
    transform:none;
    transition:none;
  }
  .show-scene.active{display:block}

  .scene-heading{
    height:auto;
    min-height:112px;
    padding:52px 8px 12px;
  }
  .scene-kicker{font-size:8px;letter-spacing:2.2px}
  .scene-heading h2{
    margin-top:4px;
    font-size:clamp(27px,9vw,38px);
    line-height:.98;
    letter-spacing:-.5px;
  }
  .scene-heading p{
    max-width:340px;
    margin-top:6px;
    font-size:10px;
    line-height:1.35;
  }

  /* VOTING: 2 columns, large touch targets, no hover dependency. */
  .vote-show-grid{
    height:auto;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:none;
    gap:8px;
    padding:0 1px 10px;
  }
  .vote-character-card{
    min-height:255px;
    border-radius:13px;
    animation:none;
    opacity:1;
    transform:none;
  }
  .vote-character-card:has(.vote-art img) .vote-art{
    width:100%;
    aspect-ratio:.79;
  }
  .vote-character-card .vote-info,
  .vote-character-card:has(.vote-art img) .vote-info{
    bottom:47px;
    height:58px;
    padding:6px 7px;
  }
  .vote-name{font-size:12px}
  .vote-trait{font-size:7px}
  .vote-count{font-size:8px}
  .vote-character-card .vote-action{
    left:6px;
    right:6px;
    bottom:6px;
  }
  .vote-character-card .vote-action button{
    min-height:38px;
    padding:8px 6px;
    font-size:10px;
    touch-action:manipulation;
  }

  /* PREDICTION: swipeable big cards instead of tiny 5-column desktop cards. */
  .prediction-heading{
    height:auto;
    min-height:116px;
  }
  .prediction-show-grid{
    height:auto;
    display:flex;
    gap:10px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:0 8vw 14px 1px;
    align-items:stretch;
    scroll-snap-type:x mandatory;
    scroll-padding-left:1px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
  }
  .show-predict-card{
    flex:0 0 min(84vw,350px);
    width:min(84vw,350px);
    min-height:min(72svh,650px);
    max-height:none;
    border-radius:17px;
    scroll-snap-align:start;
    animation:none;
    opacity:1;
    transform:none;
  }
  .show-predict-card:has(.predict-art img) .predict-art{
    min-height:0;
    flex:1 1 0;
    padding:4px 4px 0;
  }
  .predict-copy{padding:8px 9px 4px}
  .predict-name{font-size:18px}
  .predict-trait{font-size:9px}
  .predict-odds{top:7px;right:7px;padding:7px 9px;font-size:12px}
  .predict-info-btn{top:7px;left:7px;width:34px;height:34px}
  .predict-controls{
    padding:7px 8px 9px;
    grid-template-columns:minmax(0,1fr) 1fr;
    gap:6px;
  }
  .predict-controls input,
  .predict-controls .predict-btn{
    min-height:44px;
    font-size:12px;
  }
  .predict-votes{font-size:8px}

  /* COUNTDOWN: fills phone cleanly without forcing desktop dimensions. */
  .countdown-scene{
    min-height:calc(100svh - 88px);
    display:none;
  }
  .countdown-scene.active{
    display:flex;
  }
  .countdown-kicker{font-size:12px;letter-spacing:3px}
  .countdown-number{font-size:clamp(128px,45vw,220px)}
  .locked-pick{padding:0 16px;text-align:center;font-size:13px}

  /* RACE: full phone width first; standings/feed move below the track. */
  .race-show-scene{
    padding-top:50px;
  }
  .race-show-layout{
    height:auto;
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }
  .race-stage{
    width:100%;
  }
  .show-canvas,
  .show-event,
  .your-pick-bar{
    width:100%;
    max-width:none;
  }
  .show-canvas{
    aspect-ratio:16/9!important;
    border-radius:11px;
  }
  .show-canvas .banner{
    top:5px;
    padding:4px 6px;
    font-size:7px;
  }
  .show-canvas .camera-label{
    right:5px;
    bottom:5px;
    padding:4px 6px;
    font-size:7px;
  }
  .show-event{
    min-height:44px;
    margin-top:6px;
    padding:8px 9px;
    border-radius:10px;
    font-size:11px;
    line-height:1.25;
  }
  .your-pick-bar{
    min-height:36px;
    margin-top:5px;
    padding:6px 8px;
    border-radius:10px;
    gap:6px;
    font-size:10px;
  }
  .your-pick-label{font-size:7px;letter-spacing:1.1px}

  .race-rail{
    padding:10px;
    border-radius:13px;
    gap:10px;
    overflow:visible;
  }
  .rail-block h3{font-size:13px}
  .race-rail .standings{gap:4px;margin-top:6px}
  .race-rail .standing{padding:7px;font-size:10px}
  .race-rail .feed{
    max-height:180px;
    overflow:auto;
  }
  .race-rail .feedline{font-size:10px;padding:6px 7px}
  .compact-rail-info{font-size:10px}

  /* Result/photo finish overlays remain legible on small screens. */
  .photo-card{min-width:90%;padding:16px 13px}
  .photo-title{font-size:25px}
  .photo-sub{font-size:10px}
  .photo-result{font-size:18px}
  .result-kicker{font-size:8px;letter-spacing:2px}
  .result-winner{font-size:clamp(34px,12vw,54px)}
  .result-message{margin-top:9px;padding:0 10px;font-size:11px}
  .result-next{margin-top:12px;font-size:8px}

  /* Full-screen transitions should use the actual mobile viewport. */
  .show-transition{
    position:fixed;
    inset:0;
  }
  .transition-glow{width:440px;height:440px}
  .transition-title{
    padding:0 14px;
    font-size:clamp(42px,15vw,72px);
    letter-spacing:-1.5px;
  }
  .transition-sub{padding:0 18px;font-size:11px}

  /* Existing racer info modal + injected Help/Player UI: phone-safe. */
  .info-modal{padding:8px}
  .info-card{width:96vw;max-height:90svh;padding:11px;border-radius:16px}
  .info-full{padding:11px}
  .info-hero{grid-template-columns:1fr 1fr;gap:7px}
  .info-driver,.info-car{min-height:118px;padding:8px}
  .info-driver-emoji{font-size:50px}
  .info-car-emoji{font-size:58px}
  .info-name{font-size:25px}
  .info-trait{font-size:10px}
  .info-stat{grid-template-columns:72px 1fr 28px;gap:6px}
  .info-quote{font-size:14px;padding:10px}

  .br-player-modal,
  .br-help-modal,
  .br-onboarding-modal{
    padding:7px!important;
  }
  .br-player-panel,
  .br-help-panel,
  .br-onboarding-panel{
    width:100%!important;
    max-height:94svh!important;
    border-radius:15px!important;
  }
  .br-player-panel{padding:14px!important}
  .br-name-row{display:grid!important;grid-template-columns:1fr!important}
  .br-name-row button{min-height:42px!important;padding:10px!important}
  .br-account-link{display:grid!important;grid-template-columns:1fr!important}
  .br-account-link button{min-height:42px!important}
  .br-account-key{flex-wrap:wrap!important}
  .br-account-key input{flex-basis:100%!important}
  .br-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Small phones: keep voting cards usable without shrinking touch controls. */
@media (max-width: 370px){
  .show-header h1{font-size:14px}
  .show-header .sub{display:none}
  .vote-show-grid{gap:6px}
  .vote-character-card{min-height:235px}
  .vote-name{font-size:11px}
  .show-predict-card{flex-basis:88vw;width:88vw}
}

/* A rotated phone gets more track and denser grids automatically. */
@media (max-width: 900px) and (orientation: landscape){
  .show-header .balance{order:initial;width:auto}
  .show-shell{padding:0 8px 8px}
  .scene-heading{min-height:94px;padding-top:46px}
  .vote-show-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .vote-character-card{min-height:220px}
  .prediction-show-grid{padding-right:5vw}
  .show-predict-card{flex-basis:min(40vw,330px);width:min(40vw,330px);min-height:520px}
  .race-show-scene{padding-top:46px}
  .race-show-layout{grid-template-columns:minmax(0,1fr) 240px;align-items:start}
  .race-rail{max-height:calc(100svh - 120px);overflow:auto}
}

/* =========================================================
   BRONZERUSH MOBILE SWIPE CARDS RC6
   Portrait phones: one focused racer card at a time.
   Desktop + landscape remain on their existing layouts.
   ========================================================= */
@media (max-width:700px) and (orientation:portrait){
  /* Do not block horizontal gestures at the BODY level.
     The carousel itself owns horizontal scrolling. */
  body{
    touch-action:auto;
  }

  /* Small visual instruction without adding new HTML/JS. */
  #sceneVote .scene-heading p::after,
  #scenePredict .scene-heading p::after{
    content:"  ·  SWIPE RACERS ↔";
    color:#ffb267;
    font-weight:1000;
    letter-spacing:.5px;
    white-space:nowrap;
  }

  /* ---------- VOTING CAROUSEL ---------- */
  .vote-show-grid{
    width:100%;
    height:auto;
    display:flex;
    grid-template-columns:none;
    grid-template-rows:none;
    gap:12px;
    align-items:stretch;
    overflow-x:auto;
    overflow-y:hidden;
    padding:0 8vw 16px;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:8vw;
    scroll-behavior:smooth;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    touch-action:auto;
  }
  .vote-show-grid::-webkit-scrollbar{display:none}

  .vote-character-card,
  .vote-character-card:has(.vote-art img){
    flex:0 0 84vw;
    width:84vw;
    max-width:370px;
    min-width:84vw;
    min-height:min(68svh,620px);
    scroll-snap-align:center;
    scroll-snap-stop:always;
    border-radius:18px;
  }

  /* Bigger card = bigger readable game UI. */
  .vote-character-card .vote-info,
  .vote-character-card:has(.vote-art img) .vote-info{
    left:0;
    right:0;
    bottom:56px;
    height:72px;
    padding:8px 11px;
  }
  .vote-name{font-size:18px}
  .vote-trait{font-size:10px}
  .vote-count{font-size:10px}

  .vote-character-card .vote-action{
    left:9px;
    right:9px;
    bottom:9px;
  }
  .vote-character-card .vote-action button{
    min-height:44px;
    font-size:12px;
    border-radius:10px;
  }

  /* ---------- PREDICTION CAROUSEL ---------- */
  .prediction-show-grid{
    width:100%;
    gap:12px;
    padding:0 6vw 16px;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:6vw;
    scroll-behavior:smooth;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    touch-action:auto;
  }
  .prediction-show-grid::-webkit-scrollbar{display:none}

  .show-predict-card{
    flex:0 0 88vw;
    width:88vw;
    max-width:390px;
    min-width:88vw;
    min-height:min(70svh,660px);
    scroll-snap-align:center;
    scroll-snap-stop:always;
  }

  .predict-name{font-size:20px}
  .predict-trait{font-size:10px}
  .predict-controls input,
  .predict-controls .predict-btn{
    min-height:46px;
    font-size:13px;
  }
}

/* Very narrow phones: leave a visible 'peek' of the next card. */
@media (max-width:370px) and (orientation:portrait){
  .vote-character-card,
  .vote-character-card:has(.vote-art img){
    flex-basis:86vw;
    width:86vw;
    min-width:86vw;
  }
  .show-predict-card{
    flex-basis:90vw;
    width:90vw;
    min-width:90vw;
  }
  #sceneVote .scene-heading p::after,
  #scenePredict .scene-heading p::after{
    display:block;
    margin-top:3px;
    white-space:normal;
  }
}

/* =========================================================
   BRONZERUSH MOBILE SWIPE FIX RC6.1
   Explicitly hand horizontal touch gestures to the carousels.
   ========================================================= */
@media (max-width:700px) and (orientation:portrait){
  html, body{
    touch-action:auto !important;
    overscroll-behavior-x:auto;
  }

  .vote-show-grid,
  .prediction-show-grid{
    display:flex !important;
    flex-wrap:nowrap !important;
    justify-content:flex-start !important;
    width:100% !important;
    max-width:100vw !important;
    overflow-x:scroll !important;
    overflow-y:hidden !important;
    touch-action:pan-x !important;
    -webkit-overflow-scrolling:touch !important;
    overscroll-behavior-x:contain !important;
    scroll-snap-type:x mandatory !important;
    scrollbar-width:none;
    cursor:grab;
  }

  .vote-show-grid:active,
  .prediction-show-grid:active{cursor:grabbing}

  .vote-show-grid > *,
  .prediction-show-grid > *{
    flex-shrink:0 !important;
  }

  .vote-character-card,
  .show-predict-card,
  .vote-art,
  .vote-art img,
  .predict-art,
  .predict-art img{
    -webkit-user-select:none;
    user-select:none;
    -webkit-user-drag:none;
  }
}

/* =========================================================
   BRONZERUSH MOBILE SWIPE FIX RC6.2
   JS owns horizontal gestures; browser keeps vertical page scrolling.
   ========================================================= */
@media (max-width:700px) and (orientation:portrait){
  .vote-show-grid,
  .prediction-show-grid{
    touch-action:pan-y !important;
    scroll-behavior:auto !important;
  }

  .vote-show-grid.br-swipe-settling,
  .prediction-show-grid.br-swipe-settling{
    scroll-behavior:smooth !important;
  }
}

/* ============================================================
   PRO LIVE STANDINGS RC9
   Race feed + duplicate Race info are intentionally removed from
   the visible race broadcast. The timing tower becomes the hero UI.
============================================================ */

/* During the race the rail is now a single broadcast timing tower. */
.race-rail > .rail-block:nth-child(2),
.race-rail > .compact-rail-info{
  display:none !important;
}
.race-rail > .rail-block:first-child{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
}
.race-rail > .rail-block:first-child > h3{
  margin:0;
  padding:2px 2px 11px;
  font-size:18px;
  line-height:1;
  letter-spacing:.2px;
  text-transform:uppercase;
}
.race-rail > .rail-block:first-child > h3::after{
  content:"3 LAPS  •  LIVE ORDER";
  display:block;
  margin-top:7px;
  color:#8f7b6b;
  font-size:8px;
  font-weight:900;
  letter-spacing:1.7px;
}
.race-rail .standings{
  flex:1 1 auto;
  min-height:0;
  overflow:visible;
  align-content:start;
  gap:10px;
  margin-top:0;
}

/* Individual F1-style timing row. */
.race-rail .standing.standing-pro{
  position:relative;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 56px;
  align-items:center;
  gap:10px;
  min-height:82px;
  padding:11px 10px 10px 8px;
  border:1px solid #49301f;
  border-left:3px solid #765033;
  border-radius:12px;
  background:
    linear-gradient(90deg,rgba(205,127,50,.075),transparent 35%),
    #100d0b;
  box-shadow:0 7px 18px rgba(0,0,0,.17);
  overflow:hidden;
}
.race-rail .standing.standing-pro::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  background:#765033;
  opacity:.8;
}
.race-rail .standing.standing-pro[data-place="1"]{
  border-color:#a86b36;
  border-left-color:#f0a45a;
  background:
    linear-gradient(90deg,rgba(240,164,90,.16),transparent 47%),
    #120e0b;
  box-shadow:0 0 0 1px rgba(240,164,90,.08),0 8px 22px rgba(0,0,0,.22);
}
.race-rail .standing.standing-pro[data-place="1"]::before{
  background:#f0a45a;
  box-shadow:0 0 13px rgba(240,164,90,.55);
}

.stand-pos-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  border-right:1px solid #35251b;
}
.race-rail .standing .pos{
  color:#ffb56c;
  font-size:25px;
  line-height:1;
  font-weight:1000;
  letter-spacing:-1.5px;
}
.race-rail .standing[data-place="1"] .pos{
  color:#ffd1a1;
  text-shadow:0 0 13px rgba(240,164,90,.36);
}
.stand-driver{min-width:0}
.stand-name{
  min-width:0;
  display:flex;
  align-items:center;
  gap:6px;
  color:#fff;
  font-size:15px;
  line-height:1.05;
}
.stand-name b{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.stand-icon{font-size:14px;flex:0 0 auto}
.stand-bottom{
  margin-top:6px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:5px;
  min-width:0;
}
.stand-status{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#a99789;
  font-size:8px;
  line-height:1;
  font-weight:1000;
  letter-spacing:.85px;
}
.stand-status-leader{color:#ffb66f}
.stand-status-alert{
  color:#ff866f;
  text-shadow:0 0 10px rgba(255,78,55,.25);
}
.stand-status-finish{color:#f5d6a9}
.stand-damage{
  flex:0 0 auto;
  color:#77685d;
  font-size:7px;
  font-weight:900;
  letter-spacing:.55px;
}
.stand-meter{
  height:3px !important;
  margin-top:7px !important;
  border-radius:10px;
  overflow:hidden;
  background:#2a1d15 !important;
}
.stand-meter > div{
  height:100%;
  border-radius:10px;
  background:linear-gradient(90deg,#bc7239,#ffad62) !important;
}
.stand-lap{
  align-self:start;
  padding-top:1px;
  color:#e4d5c8;
  font-size:10px;
  line-height:1;
  font-weight:1000;
  text-align:right;
  letter-spacing:.3px;
}
.race-rail .standing[data-status="alert"]{
  border-color:#613026;
}
.race-rail .standing[data-status="alert"]::before{
  background:#d35b49;
  box-shadow:0 0 11px rgba(211,91,73,.28);
}

/* Let the single timing tower use the width more efficiently. */
@media (min-width: 901px){
  .race-show-layout{
    grid-template-columns:minmax(0,1fr) 350px;
  }
  .race-rail{
    padding:15px;
    gap:0;
  }
}

/* Mobile: the tower stays below the track but is now cleaner and larger. */
@media (max-width: 900px){
  .race-rail > .rail-block:first-child > h3{
    font-size:15px;
    padding-bottom:9px;
  }
  .race-rail > .rail-block:first-child > h3::after{
    margin-top:5px;
    font-size:7px;
  }
  .race-rail .standings{gap:7px}
  .race-rail .standing.standing-pro{
    grid-template-columns:38px minmax(0,1fr) 50px;
    min-height:68px;
    padding:9px 8px 8px 6px;
    gap:8px;
    font-size:inherit;
  }
  .race-rail .standing .pos{font-size:21px}
  .stand-name{font-size:13px}
  .stand-status{font-size:7px}
  .stand-damage{font-size:6px}
  .stand-lap{font-size:9px}
}

/* ============================================================
   BRONZERUSH PREDICTION SELECTION LAYOUT RC11
   Desktop-only first pass. Mobile keeps the proven swipe flow.
============================================================ */
@media (min-width:901px){
  #scenePredict .prediction-heading{
    height:104px;
    padding-top:42px;
  }
  #scenePredict .prediction-heading .scene-kicker{
    font-size:9px;
    letter-spacing:.22em;
  }
  #scenePredict .prediction-heading h2{
    margin-top:3px;
    font-size:clamp(30px,2.8vw,44px);
  }
  #scenePredict .prediction-heading p{
    margin-top:4px;
    font-size:11px;
  }
  #scenePredict .prediction-show-grid{
    height:calc(100% - 110px);
    display:block;
    padding:0 18px 10px;
    overflow:hidden;
  }

  .br-prediction-layout{
    height:100%;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(278px,310px);
    gap:14px;
    min-height:0;
  }
  .br-pred-main{
    min-width:0;
    min-height:0;
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
    gap:10px;
  }
  .br-pred-section-head{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:16px;
    padding:0 2px;
  }
  .br-pred-section-head > div{
    display:flex;
    align-items:baseline;
    gap:9px;
  }
  .br-pred-section-head span{
    color:#c68545;
    font:950 8px/1 Inter,Arial;
    letter-spacing:.2em;
  }
  .br-pred-section-head strong{
    color:#fff;
    font:950 16px/1 Inter,Arial;
    letter-spacing:.02em;
  }
  .br-pred-section-head small{
    color:#8f8175;
    font:700 9px/1.2 Inter,Arial;
  }

  .br-pred-racer-grid{
    min-height:0;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:9px;
  }
  .br-pred-racer-card{
    --accent:#cd7f32;
    appearance:none;
    border:1px solid color-mix(in srgb,var(--accent) 55%,#3a2618 45%);
    border-radius:14px;
    padding:0;
    min-width:0;
    min-height:0;
    overflow:hidden;
    color:#fff;
    text-align:left;
    cursor:pointer;
    position:relative;
    display:grid;
    grid-template-rows:minmax(0,1fr) auto;
    background:linear-gradient(180deg,#15100c,#090706);
    box-shadow:0 14px 32px rgba(0,0,0,.18);
    opacity:0;
    transform:translateY(18px) scale(.985);
    animation:brPredCardIn .52s cubic-bezier(.16,.86,.25,1) forwards;
    animation-delay:var(--delay);
    transition:border-color .28s ease,box-shadow .28s ease,filter .28s ease,transform .28s cubic-bezier(.16,.86,.25,1);
  }
  @keyframes brPredCardIn{to{opacity:1;transform:none}}
  .br-pred-racer-card:hover{
    transform:translateY(-4px);
    border-color:color-mix(in srgb,var(--accent) 80%,#fff 12%);
    box-shadow:0 22px 42px rgba(0,0,0,.3),0 0 28px color-mix(in srgb,var(--accent) 13%,transparent);
  }
  .br-pred-racer-card.selected{
    transform:translateY(-5px) scale(1.012);
    border-color:color-mix(in srgb,var(--accent) 84%,#fff 16%);
    box-shadow:0 22px 45px rgba(0,0,0,.34),0 0 34px color-mix(in srgb,var(--accent) 24%,transparent);
  }
  .br-pred-racer-card.selected:after{
    content:"SELECTED";
    position:absolute;
    left:9px;
    top:9px;
    z-index:3;
    padding:5px 7px;
    border-radius:999px;
    background:rgba(7,6,5,.9);
    border:1px solid color-mix(in srgb,var(--accent) 65%,#fff 10%);
    color:#ffd8ad;
    font:950 7px/1 Inter,Arial;
    letter-spacing:.13em;
  }
  .br-pred-racer-card.locked{filter:grayscale(.75) brightness(.52)}
  .br-pred-racer-card.picked{filter:none;opacity:1}
  .br-pred-racer-card:disabled{cursor:default}

  .br-pred-mini-art{
    position:relative;
    min-height:0;
    overflow:hidden;
    background:radial-gradient(circle at 50% 18%,rgba(205,127,50,.11),transparent 58%),#0d0a08;
  }
  .br-pred-mini-art img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:50% 50%;
    display:block;
    transition:transform .45s cubic-bezier(.16,.86,.25,1);
  }
  .br-pred-racer-card:hover .br-pred-mini-art img,
  .br-pred-racer-card.selected .br-pred-mini-art img{transform:scale(1.025)}
  .br-pred-mini-odds{
    position:absolute;
    z-index:2;
    right:8px;
    top:8px;
    border-radius:999px;
    padding:6px 8px;
    color:#ffd5aa;
    background:rgba(7,5,4,.9);
    border:1px solid color-mix(in srgb,var(--accent) 52%,#fff 8%);
    font:950 10px/1 Inter,Arial;
  }
  .br-pred-mini-copy{
    padding:9px 9px 10px;
    background:linear-gradient(180deg,rgba(12,9,7,.92),#090706);
    border-top:1px solid rgba(205,127,50,.14);
  }
  .br-pred-mini-name{
    font:950 14px/1.05 Inter,Arial;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .br-pred-mini-trait{
    margin-top:3px;
    color:#a99786;
    font:700 8px/1.3 Inter,Arial;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .br-pred-mini-fit{
    margin-top:7px;
    padding-top:7px;
    border-top:1px solid rgba(205,127,50,.13);
    color:#d5aa76!important;
    font:900 7px/1.2 Inter,Arial!important;
    letter-spacing:.025em;
    text-transform:uppercase;
    text-align:left!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .br-pred-intel-grid{
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:9px;
  }
  .br-pred-intel-card{
    min-width:0;
    border:1px solid rgba(205,127,50,.24);
    background:linear-gradient(135deg,rgba(25,17,11,.94),rgba(10,8,7,.94));
    border-radius:12px;
    padding:10px 12px;
  }
  .br-pred-intel-title{
    color:#cb8442;
    font:950 8px/1 Inter,Arial;
    letter-spacing:.16em;
    margin-bottom:8px;
  }
  .br-pred-condition-row{
    display:grid;
    grid-template-columns:1.35fr .7fr .85fr 1fr;
    gap:7px;
  }
  .br-pred-condition-row > div{
    min-width:0;
    display:grid;
    gap:4px;
    padding-right:8px;
    border-right:1px solid rgba(205,127,50,.13);
  }
  .br-pred-condition-row > div:last-child{border-right:0}
  .br-pred-condition-row span{
    color:#7f7165;
    font:900 7px/1 Inter,Arial;
    letter-spacing:.13em;
  }
  .br-pred-condition-row strong{
    color:#fff;
    font:900 10px/1.1 Inter,Arial;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .br-pred-read-lines{display:grid;gap:4px}
  .br-pred-read-lines > div{
    display:flex;
    align-items:center;
    gap:7px;
    color:#aa9a8b;
    font:700 8px/1.25 Inter,Arial;
  }
  .br-pred-read-lines span{
    flex:0 0 17px;
    width:17px;height:17px;
    display:grid;place-items:center;
    border-radius:50%;
    background:#28180e;
    border:1px solid #5e361c;
    color:#d48b45;
    font:950 7px Inter,Arial;
  }

  .br-selected-panel{
    --accent:#cd7f32;
    min-width:0;
    min-height:0;
    border:1px solid rgba(205,127,50,.32);
    border-radius:15px;
    overflow:hidden;
    background:
      radial-gradient(circle at 50% 10%,rgba(205,127,50,.11),transparent 34%),
      linear-gradient(180deg,#15100c,#090706 78%);
    box-shadow:0 20px 48px rgba(0,0,0,.28);
    opacity:0;
    transform:translateX(24px) scale(.985);
    transition:opacity .5s ease,transform .58s cubic-bezier(.16,.86,.25,1),filter .18s ease;
  }
  .br-selected-panel.ready{
    opacity:1;
    transform:none;
  }
  .br-selected-panel.switching{
    opacity:.62;
    transform:translateX(7px) scale(.99);
    filter:brightness(.72);
  }
  .br-selected-panel.locked-pick-panel{
    border-color:#d5873e;
    box-shadow:0 20px 48px rgba(0,0,0,.28),0 0 38px rgba(205,127,50,.16);
  }
  .br-selected-inner{
    height:100%;
    min-height:0;
    display:grid;
    grid-template-rows:auto minmax(150px,1fr) auto auto auto;
  }
  .br-selected-kicker{
    padding:10px 12px 7px;
    color:#c78340;
    font:950 8px/1 Inter,Arial;
    letter-spacing:.18em;
  }
  .br-selected-hero{
    min-height:0;
    position:relative;
    overflow:hidden;
    margin:0 10px;
    border:1px solid rgba(205,127,50,.18);
    border-radius:11px;
    background:#0b0806;
  }
  .br-selected-hero img{
    position:absolute;
    inset:0;
    width:100%;height:100%;
    object-fit:cover;
    object-position:50% 17%;
    transform:scale(1.02);
  }
  .br-selected-info{
    position:absolute!important;
    z-index:3;
    left:8px!important;
    top:8px!important;
  }
  .br-selected-copy{padding:10px 12px 7px}
  .br-selected-name{font:950 21px/1 Inter,Arial;color:#fff}
  .br-selected-trait{margin-top:4px;color:#9c8d80;font:700 9px/1.25 Inter,Arial}
  .br-selected-fit{margin-top:7px;color:#d8a66d;font:900 8px/1.2 Inter,Arial;text-transform:uppercase}

  .br-selected-stats{
    padding:0 12px 9px;
    display:grid;
    gap:6px;
  }
  .br-selected-stat{
    display:grid;
    grid-template-columns:61px minmax(0,1fr) 50px;
    align-items:center;
    gap:7px;
  }
  .br-selected-stat > span{
    color:#817367;
    font:900 7px/1 Inter,Arial;
    letter-spacing:.08em;
  }
  .br-selected-stat > b{
    color:#c8b4a0;
    text-align:right;
    font:900 7px/1 Inter,Arial;
  }
  .br-stat-track{
    height:5px;
    overflow:hidden;
    border-radius:999px;
    background:#24180f;
  }
  .br-stat-track i{
    display:block;
    height:100%;
    border-radius:inherit;
    background:linear-gradient(90deg,#9a5327,#ef9d50);
    box-shadow:0 0 12px rgba(225,136,66,.18);
  }

  .br-selected-bet{
    padding:10px 12px 12px;
    border-top:1px solid rgba(205,127,50,.18);
    background:rgba(5,4,3,.34);
  }
  .br-bet-head{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-bottom:8px;
  }
  .br-bet-head > div{
    padding:7px 8px;
    border:1px solid rgba(205,127,50,.18);
    border-radius:9px;
    background:#0b0806;
  }
  .br-bet-head span{
    display:block;
    color:#86776a;
    font:900 7px/1 Inter,Arial;
    letter-spacing:.1em;
    margin-bottom:4px;
  }
  .br-bet-head strong{
    color:#fff;
    font:950 17px/1 Inter,Arial;
  }
  .br-bet-input-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) 52px;
    gap:6px;
  }
  .br-bet-input-row input{
    width:100%;min-width:0;
    border:1px solid #52301b;
    border-radius:9px;
    background:#0b0806;
    color:#fff;
    padding:9px 10px;
    font:950 12px Inter,Arial;
  }
  .br-max-btn,
  .br-quick-stakes button{
    border:1px solid #56331e;
    border-radius:8px;
    background:#1b110b;
    color:#cbb6a2;
    font:900 8px Inter,Arial;
    cursor:pointer;
  }
  .br-quick-stakes{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:5px;
    margin-top:6px;
  }
  .br-quick-stakes button{padding:6px}
  .br-lock-pick{
    width:100%;
    min-height:42px;
    margin-top:8px;
    border-radius:10px;
    background:linear-gradient(180deg,#8b4b21,#4b2812)!important;
    border:1px solid #c87537!important;
    color:#fff!important;
    font:950 11px Inter,Arial!important;
    letter-spacing:.04em;
    box-shadow:0 10px 26px rgba(0,0,0,.24);
    transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
  }
  .br-lock-pick:hover:not(:disabled){
    transform:translateY(-2px) scale(1.015);
    box-shadow:0 14px 30px rgba(0,0,0,.3),0 0 24px rgba(205,127,50,.16);
  }
  .br-lock-pick:active:not(:disabled){transform:scale(.985)}
}
\n\n/* ============================================================\n   BronzeRush RC12 — Smooth phase motion\n   Presentation only. Desktop-first; mobile keeps existing flow.\n   ============================================================ */\n@media (min-width:901px){\n  #sceneVote .scene-heading,\n  #sceneVote .br-condition-hero,\n  #sceneVote .br-grid-label,\n  #sceneVote .br-brief-racer{\n    will-change:transform,opacity,filter;\n  }\n\n  #sceneVote.br-phase-exit .scene-heading{\n    animation:brBriefHeadingOut .46s cubic-bezier(.55,.02,.36,1) both;\n  }\n  #sceneVote.br-phase-exit .br-condition-hero{\n    animation:brBriefPanelOut .50s cubic-bezier(.55,.02,.36,1) both;\n  }\n  #sceneVote.br-phase-exit .br-grid-label{\n    animation:brBriefPanelOut .43s .035s cubic-bezier(.55,.02,.36,1) both;\n  }\n  #sceneVote.br-phase-exit .br-brief-racer{\n    animation:brBriefCardOut .42s cubic-bezier(.55,.02,.36,1) both;\n  }\n  #sceneVote.br-phase-exit .br-brief-racer:nth-child(1){animation-delay:.00s}\n  #sceneVote.br-phase-exit .br-brief-racer:nth-child(2){animation-delay:.025s}\n  #sceneVote.br-phase-exit .br-brief-racer:nth-child(3){animation-delay:.050s}\n  #sceneVote.br-phase-exit .br-brief-racer:nth-child(4){animation-delay:.075s}\n  #sceneVote.br-phase-exit .br-brief-racer:nth-child(5){animation-delay:.100s}\n\n  @keyframes brBriefHeadingOut{\n    to{opacity:0;transform:translateY(-15px) scale(.992);filter:blur(2px)}\n  }\n  @keyframes brBriefPanelOut{\n    to{opacity:0;transform:translateY(-11px) scale(.992);filter:brightness(.74)}\n  }\n  @keyframes brBriefCardOut{\n    to{opacity:0;transform:translateY(18px) scale(.972);filter:brightness(.66)}\n  }\n\n  #scenePredict.br-prediction-enter .scene-heading{\n    animation:brPredictHeadingIn .58s cubic-bezier(.16,.86,.25,1) both;\n  }\n  #scenePredict.br-prediction-enter .br-pred-section-head{\n    animation:brPredictSectionIn .58s .06s cubic-bezier(.16,.86,.25,1) both;\n  }\n  #scenePredict.br-prediction-enter .br-pred-intel-card{\n    animation:brPredictIntelIn .54s .20s cubic-bezier(.16,.86,.25,1) both;\n  }\n  #scenePredict.br-prediction-enter .br-pred-intel-card:nth-child(2){animation-delay:.27s}\n\n  @keyframes brPredictHeadingIn{\n    from{opacity:0;transform:translateY(-15px);filter:blur(2px)}\n    to{opacity:1;transform:none;filter:none}\n  }\n  @keyframes brPredictSectionIn{\n    from{opacity:0;transform:translateY(14px)}\n    to{opacity:1;transform:none}\n  }\n  @keyframes brPredictIntelIn{\n    from{opacity:0;transform:translateY(13px) scale(.99)}\n    to{opacity:1;transform:none}\n  }\n\n  .br-selected-panel{\n    transition:opacity .58s ease,transform .68s cubic-bezier(.16,.86,.25,1),filter .24s ease,box-shadow .28s ease!important;\n  }\n  .br-selected-panel.switching{\n    opacity:.34!important;\n    transform:translateX(18px) scale(.982)!important;\n    filter:brightness(.58) blur(1px)!important;\n  }\n  .br-pred-racer-card.selected{\n    transition-duration:.36s!important;\n  }\n}\n\n@media (prefers-reduced-motion: reduce){\n  #sceneVote.br-phase-exit *,\n  #scenePredict.br-prediction-enter *,\n  .br-pred-racer-card,\n  .br-selected-panel{\n    animation:none!important;\n    transition-duration:.01ms!important;\n  }\n}\n

/* =========================================================
   MANUAL CAMERA V1 / RC13
   ========================================================= */
.show-canvas .camera-label.br-camera-control{
  cursor:pointer;
  pointer-events:auto;
  user-select:none;
  -webkit-user-select:none;
  transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease;
  border:1px solid rgba(214,150,78,.28);
  background:rgba(10,8,7,.82);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.show-canvas .camera-label.br-camera-control:hover,
.show-canvas .camera-label.br-camera-control:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(238,174,94,.72);
  box-shadow:0 8px 24px rgba(0,0,0,.32),0 0 18px rgba(205,126,49,.12);
  outline:none;
}
.br-camera-menu{
  position:absolute;
  right:10px;
  bottom:48px;
  z-index:55;
  width:230px;
  padding:8px;
  border:1px solid rgba(196,131,68,.34);
  border-radius:13px;
  background:rgba(12,10,9,.96);
  box-shadow:0 18px 55px rgba(0,0,0,.56);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  opacity:0;
  transform:translateY(8px) scale(.98);
  pointer-events:none;
  transition:opacity .18s ease,transform .22s cubic-bezier(.2,.8,.2,1);
}
.br-camera-menu.open{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
.br-camera-menu-title{
  padding:6px 8px 8px;
  color:#bca995;
  font-size:10px;
  line-height:1;
  font-weight:900;
  letter-spacing:1.7px;
}
.br-camera-menu button{
  width:100%;
  min-height:44px;
  display:grid;
  grid-template-columns:28px 1fr;
  grid-template-rows:auto auto;
  column-gap:8px;
  align-items:center;
  margin:2px 0;
  padding:7px 9px;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:#eee4da;
  text-align:left;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.br-camera-menu button>span{
  grid-row:1/3;
  font-size:17px;
  text-align:center;
}
.br-camera-menu button strong{
  font-size:12px;
  line-height:1.1;
  letter-spacing:.35px;
}
.br-camera-menu button small{
  color:#8f8277;
  font-size:9px;
  line-height:1.1;
}
.br-camera-menu button:hover{
  background:rgba(255,255,255,.045);
  transform:translateX(2px);
}
.br-camera-menu button.active{
  border-color:rgba(222,148,75,.55);
  background:linear-gradient(90deg,rgba(165,90,29,.26),rgba(255,255,255,.025));
}
.br-camera-menu button.active strong{color:#efb36d}

@media(max-width:760px){
  .br-camera-menu{
    right:5px;
    bottom:34px;
    width:min(220px,82vw);
    padding:6px;
  }
  .br-camera-menu button{
    min-height:40px;
    padding:6px 8px;
  }
  .br-camera-menu-title{font-size:8px}
}

@media(prefers-reduced-motion:reduce){
  .br-camera-menu,
  .show-canvas .camera-label.br-camera-control,
  .br-camera-menu button{transition:none!important}
}
