/* BloodCrimes - shared Instant Games visual layer. */
html.bc-instant,
html.bc-focus-mode {
  background: #08090d;
}

.bc-insta-page {
  max-width: 980px;
}

.bc-insta-wrap {
  position: relative;
}

.bc-insta-wrap::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 9, 13, 0.72), #08090d 76%),
    radial-gradient(circle at 18% 8%, rgba(181, 18, 32, 0.2), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(214, 173, 98, 0.12), transparent 26%),
    linear-gradient(120deg, #11131a, #08090d 58%, #141015);
}

.bc-insta-wrap .bc-page-header {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(214, 173, 98, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(8, 9, 13, 0.96), rgba(24, 24, 27, 0.82)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 78px);
}

.bc-insta-wrap .bc-page-header::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: -0.2rem;
  width: min(36vw, 220px);
  height: 86px;
  opacity: 0.42;
  background:
    linear-gradient(to top, rgba(214, 173, 98, 0.24), transparent 70%),
    repeating-linear-gradient(90deg, rgba(214, 173, 98, 0.5) 0 2px, transparent 2px 28px);
  clip-path: polygon(0 100%, 0 42%, 10% 42%, 10% 25%, 18% 25%, 18% 58%, 29% 58%, 29% 16%, 40% 16%, 40% 48%, 50% 48%, 50% 8%, 64% 8%, 64% 52%, 75% 52%, 75% 30%, 86% 30%, 86% 62%, 100% 62%, 100% 100%);
  pointer-events: none;
}

.bc-insta-wrap .bc-page-title,
.bc-insta-wrap .bc-page-sub,
.bc-insta-wrap .bc-page-kicker {
  position: relative;
  z-index: 1;
}

.bc-insta-stage {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(214, 173, 98, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(24, 24, 27, 0.94), rgba(8, 9, 13, 0.96));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.bc-insta-stage .card-body {
  position: relative;
}

.bc-insta-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 7;
  border: 1px solid rgba(214, 173, 98, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(214, 173, 98, 0.08), transparent 34%),
    linear-gradient(180deg, #171921, #0b0c10 72%);
  box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.42);
  touch-action: none;
}

.bc-insta-hud,
.smash-hud,
.theft-hud,
.crack-hud,
.raid-hud,
.robbery-hud,
.escape-hud {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  pointer-events: none;
}

.bc-insta-chip,
.smash-timer,
.smash-dmg,
.theft-timer,
.theft-phase,
.crack-timer,
.crack-pins,
.raid-timer,
.raid-loot,
.robbery-timer,
.robbery-alarm,
.escape-dist,
.escape-heat {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  max-width: 48%;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(3, 4, 7, 0.72);
  color: #e4e7ec;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
}

.bc-insta-chip i,
.smash-timer i,
.theft-timer i,
.crack-timer i,
.raid-timer i,
.robbery-timer i,
.escape-dist i {
  color: #d6ad62;
  margin-right: 0.35rem;
}

.smash-dmg,
.robbery-alarm,
.escape-heat {
  color: #fb7185;
}

.raid-loot {
  color: #86efac;
}

.bc-insta-hint,
.smash-zone-label,
.theft-label,
.crack-label,
.raid-label,
.robbery-label,
.escape-label {
  position: absolute;
  left: 50%;
  bottom: -2.05rem;
  z-index: 3;
  width: max-content;
  max-width: calc(100% - 1rem);
  transform: translateX(-50%);
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  background: rgba(3, 4, 7, 0.82);
  color: #cfd2da;
  font-size: 0.78rem;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.bc-insta-leaderboard {
  min-height: 44px;
  margin: 2.2rem 0 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(20, 21, 25, 0.66);
}

.bc-insta-result {
  margin-bottom: 1rem;
}

.bc-insta-result .bc-panel,
.bc-insta-result .card {
  border-radius: 8px;
}

@media (max-width: 575.98px) {
  .bc-insta-page {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .bc-insta-wrap .bc-page-header {
    min-height: 116px;
    padding: 0.95rem 1rem;
  }

  .bc-insta-chip,
  .smash-timer,
  .smash-dmg,
  .theft-timer,
  .theft-phase,
  .crack-timer,
  .crack-pins,
  .raid-timer,
  .raid-loot,
  .robbery-timer,
  .robbery-alarm,
  .escape-dist,
  .escape-heat {
    min-height: 30px;
    padding: 0.25rem 0.55rem;
    font-size: 0.78rem;
  }

  .bc-insta-hint,
  .smash-zone-label,
  .theft-label,
  .crack-label,
  .raid-label,
  .robbery-label,
  .escape-label {
    bottom: -2.4rem;
    font-size: 0.72rem;
  }

  .bc-insta-leaderboard {
    margin-top: 2.7rem;
  }
}
/* Shared Crime Engine result treatment. */
.bc-insta-result {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
.bc-insta-result .bc-alert {
  margin: 0;
  border-left-width: 3px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.bc-insta-result .d-flex {
  align-items: stretch;
  gap: .6rem !important;
}
.bc-insta-result .btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
}
@media (max-width: 575.98px) {
  .bc-insta-result .d-flex { flex-direction: column; }
  .bc-insta-result .btn { width: 100%; }
}
