/* India.gg Streamer Mode. Restyles a game only when html.igg-stream is set. */

.igg-stream-link-wrap{
  margin:14px 0 0;
  text-align:center;
}
a.igg-stream-link{
  display:inline-block;
  color:#ffe2c2;
  font-weight:700;
  font-size:.88rem;
  text-decoration:underline;
  text-underline-offset:3px;
}
a.igg-stream-link:hover,
a.igg-stream-link:focus-visible{
  color:#fff;
}
.igg-stream-link-note{
  display:block;
  margin:4px auto 0;
  max-width:24em;
  font-size:.78rem;
  line-height:1.4;
  color:#8b94ab;
  font-weight:500;
}

html.igg-stream,
html.igg-stream body{
  background:#000 !important;
}
html.igg-stream body.game-page{
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(100vw, calc(100vh * 16 / 9));
  height:min(100vh, calc(100vw * 9 / 16));
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background:#05070d;
}
html.igg-stream-vertical body.game-page{
  width:min(100vw, calc(100vh * 9 / 16));
  height:min(100vh, calc(100vw * 16 / 9));
}

html.igg-stream header.site-header,
html.igg-stream footer,
html.igg-stream .site-footer,
html.igg-stream nav.awp-more,
html.igg-stream .igg-gta6-float,
html.igg-stream .cookie,
html.igg-stream .cookie-banner,
html.igg-stream #cookie,
html.igg-stream [data-cookie],
html.igg-stream .consent,
html.igg-stream .cookie-consent,
html.igg-stream .igg-stream-link-wrap{
  display:none !important;
}

/* Pothole: drop the score pills, keep sound and pause as compact controls. */
html.igg-stream .hud{
  position:absolute;
  top:0;
  right:0;
  left:auto;
  z-index:8;
  background:none;
  border:0;
  min-height:0;
  padding:10px 12px;
  pointer-events:none;
  width:auto;
  gap:6px;
}
html.igg-stream .hud .pill,
html.igg-stream .hud .grow{
  display:none !important;
}
html.igg-stream .hud .icon-btn{
  pointer-events:auto;
  background:rgba(5,7,13,.55);
  border-color:rgba(255,255,255,.18);
}

html.igg-stream body.game-page .stage,
html.igg-stream body.awp .awp-stage{
  flex:1;
  min-height:0;
  width:100%;
}

/* Auto Wala: fill the frame so the 3D scene can use the extra space. */
html.igg-stream body.awv2 .awp-stage{
  max-width:none;
  margin:0;
  padding:8px 20px 16px;
  box-sizing:border-box;
  height:100%;
}
html.igg-stream body.awv2.igg-stream-playing .awp-stage{
  padding-top:96px;
}
html.igg-stream body.awv2 .scene{
  max-height:none;
  min-height:0;
}
html.igg-stream-vertical body.awv2 .awp-stage{
  padding:8px 14px 14px;
}
html.igg-stream-vertical body.awv2.igg-stream-playing .awp-stage{
  padding-top:96px;
}
/* Collapse the empty controls block on the start screen so the 3D scene can fill the frame. */
html.igg-stream body.awv2 .controls:not(:has(> :not([hidden]))){
  display:none !important;
  min-height:0 !important;
}
html.igg-stream body.awv2 .top #rideNo,
html.igg-stream body.awv2 .top #starsSoFar{
  display:none;
}

.igg-stream-score{
  position:absolute;
  top:12px;
  left:16px;
  z-index:6;
  pointer-events:none;
  color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.85), 0 0 2px #000;
  font-variant-numeric:tabular-nums;
  max-width:70%;
}
.igg-stream-score .igg-stream-label{
  display:block;
  font-size:clamp(11px, 1.5vw, 16px);
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.85;
}
.igg-stream-score .igg-stream-value{
  display:block;
  font-size:clamp(36px, 6.4vw, 92px);
  font-weight:800;
  line-height:.95;
  letter-spacing:-.03em;
}
.igg-stream-score .igg-stream-sub{
  display:block;
  margin-top:4px;
  font-size:clamp(13px, 2vw, 24px);
  font-weight:700;
  opacity:.9;
}
html.igg-stream body.awv2 .igg-stream-score{
  top:10px;
}
html.igg-stream body.awv2 .igg-stream-score .igg-stream-value{
  font-size:clamp(32px, 4.6vw, 72px);
}

.igg-stream-mark{
  position:absolute;
  right:14px;
  bottom:12px;
  z-index:6;
  pointer-events:none;
  color:#fff;
  opacity:.7;
  font-size:clamp(12px, 1.5vw, 18px);
  font-weight:700;
  letter-spacing:.01em;
  text-shadow:0 1px 8px rgba(0,0,0,.8);
}
