.sib-section {
  max-width: 780px;
  margin: 10px auto 0 auto;
  padding: 0;
  background: #FAE9D5;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.74);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.sib-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.65), rgba(255,255,255,0) 40%);
  pointer-events: none;
  opacity: 0.55;
}

.sib-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 14, 22, 0.68);
  backdrop-filter: blur(8px);
  z-index: 30;
}

.sib-overlay-card {
  width: min(440px, calc(100% - 48px));
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  padding: 22px 22px 20px;
  text-align: center;
  box-shadow: 0 28px 70px rgba(0,0,0,0.35);
  position: relative;
  z-index: 1;
}

.sib-overlay-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: #0d1020;
  letter-spacing: 0.01em;
}

.sib-overlay-subtitle {
  margin-top: 6px;
  font-size: 1.02rem;
  font-weight: 600;
  color: rgba(13, 16, 32, 0.75);
}

.sib-score-label {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(13, 16, 32, 0.55);
}

.sib-score-label-tight {
  margin-top: 12px;
}

.sib-score {
  margin-top: 6px;
  font-size: 4.1rem;
  font-weight: 900;
  line-height: 1;
  color: #0d1020;
}

.sib-score-small {
  font-size: 2.4rem;
  opacity: 0.9;
}

.sib-overlay-btn {
  margin-top: 18px;
  padding: 12px 42px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  background: linear-gradient(90deg, #111 0%, #2a2f4a 100%);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
  transition: transform 0.12s, box-shadow 0.2s, filter 0.2s;
  font-family: 'Poppins', sans-serif;
}

.sib-overlay-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.1);
  box-shadow: 0 22px 52px rgba(0,0,0,0.28);
}

.sib-overlay-btn:active {
  transform: translateY(0px) scale(0.99);
}

.canvas-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  position: relative;
  z-index: 1;
}

.sib-canvas-hud {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
  pointer-events: none;
}

.sib-canvas-stat {
  margin-bottom: 16px;
  text-align: center;
  color: #7c4b01;
  font-family: "Clash";
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sib-canvas-stat-label {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c4b01;
}

.sib-canvas-stat-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ff3636;
  line-height: 1.1;
}

#sib-canvas {
  width: 100%;
  height: 450px;
  display: block;
  touch-action: none;
}

/* Overlay tweaks for rounded breakpoints (1000 / 800) - placed above 600px rules */
@media (max-width: 1000px) {
  .sib-section { margin: 10px auto 0 auto;}
  .sib-overlay-card { padding: 18px 18px 16px; width: min(420px, calc(100% - 40px)); }
  .sib-overlay-title { font-size: 1.9rem; }
  .sib-overlay-subtitle { font-size: 0.98rem; }
  .sib-overlay-btn { padding: 11px 36px; font-size: 1.04rem; }
  #sib-canvas { height: 420px; }
  .sib-section { max-width: 95%; }
  .sib-canvas-stat {
    padding: 8px 10px;
    gap: 4px;
    min-width: 160px;
  }

  .sib-canvas-stat-label {
    font-size: 0.8rem;
    font-weight: 800;
  }

  .sib-canvas-stat-value {
    font-size: 1.25rem;
    font-weight: 900;
  }

}

@media (max-width: 800px) {
  .sib-overlay-card { padding: 16px 16px 14px; width: min(400px, calc(100% - 36px)); }
  .sib-overlay-title { font-size: 1.75rem; }
  .sib-overlay-subtitle { font-size: 0.95rem; }
  .sib-overlay-btn { padding: 10px 34px; font-size: 1.02rem; }
  #sib-canvas { height: 380px; }
  .sib-section { max-width: 92%; padding: 8px 10px; }
  .sib-canvas-stat {
    padding: 7px 8px;
    gap: 3px;
    min-width: 100px;
  }

  .sib-canvas-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
  }

  .sib-canvas-stat-value {
    font-size: 1rem;
    font-weight: 800;
  }
}

/* Small-screen overlay tweaks */
@media (max-width: 600px) {
  .sib-section{
    max-width: 90%;
    margin: 20px auto 0 auto;
    padding: 12px 14px;
  }
  #sib-canvas {
    height: 320px;
  }
  .sib-overlay-card { padding: 14px 14px 12px; width: min(360px, calc(100% - 32px)); }
  .sib-overlay-title { font-size: 1.6rem; }
  .sib-overlay-subtitle { font-size: 0.9rem; }
  .sib-overlay-btn { padding: 10px 30px; font-size: 0.98rem; }
  .sib-canvas-stat {
    padding: 4px 6px;
    gap: 1px;
    min-width: 50px;
  }

  .sib-canvas-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
  }

  .sib-canvas-stat-value {
    font-size: 1rem;
    font-weight: 800;
  }
}