/* ===============================
   GLOBAL RESET
================================ */
html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: gold;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}

/* ===============================
   MAIN CONTAINER
================================ */
.lab-container {
  width: 100%;
  max-width: 1200px;
  min-height: 850px;
  margin: 0 auto;
  padding: 30px;
  box-sizing: border-box;

  border: 3px solid gold;
  border-radius: 18px;

  background:
    radial-gradient(circle at top, #111 0%, #000 70%);

  text-align: center;
}

/* ===============================
   TEXT
================================ */
h1 {
  margin-top: 0;
  font-size: 36px;
}

.lab-desc {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 18px;
}

.instability-label {
  font-size: 13px;
  color: #ff6666;
  margin-top: 6px;
}

/* ===============================
   INSTABILITY BAR
================================ */
.instability-container {
  width: 90%;
  height: 22px;
  margin: 10px auto;
  border: 2px solid red;
  background: #300;
  border-radius: 8px;
  overflow: hidden;
}

#instabilityBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, orange, red);
  transition: width 0.25s linear;
}

/* ===============================
   CIRCULAR FLUX DIAL
================================ */
.dial-container {
  display: flex;
  justify-content: center;
  margin: 35px 0;
}

.dial {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 6px solid gold;

  background:
    radial-gradient(circle, #111 55%, #000 100%);
}

/* GOOD ZONE (VERY OBVIOUS) */
.dial-zone {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;

  border: 20px solid transparent;
  border-top: 20px solid #ffd700;

  transform: rotate(40deg);
  box-sizing: border-box;

  box-shadow: 0 0 18px rgba(255, 215, 0, 0.6);
  transition: box-shadow 0.2s ease;
}

/* Glow when needle is inside */
.dial-zone.active {
  box-shadow:
    0 0 30px rgba(255, 215, 0, 1),
    0 0 60px rgba(255, 215, 0, 0.7);
}

/* Needle */
#needle {
  position: absolute;
  width: 4px;
  height: 135px;
  background: #00ffd5;

  top: 10px;
  left: 50%;

  transform-origin: bottom center;
  transform: rotate(0deg);

  box-shadow: 0 0 10px rgba(0, 255, 213, 0.8);
}

/* ===============================
   BUTTONS
================================ */
.button-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

button {
  cursor: pointer;
  border-radius: 8px;
  font-size: 15px;
  padding: 12px 20px;
  border: none;
}

/* Stabilize */
#stabilizeBtn {
  background: gold;
  color: #000;
}

/* Ad button */
.ad-btn {
  background: #00ffd5;
  color: #000;
}

/* Cash out */
.cash-btn {
  background: gold;
  color: #000;
  margin-top: 12px;
}

/* Reset */
.reset-btn {
  background: #222;
  color: #fff;
  border: 1px solid #888;
  margin-top: 10px;
}

/* Info */
.info-btn {
  background: none;
  color: gold;
  border: 1px solid gold;
  font-size: 12px;
  padding: 6px 12px;
  margin-top: 12px;
}

/* Disabled buttons */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===============================
   STATUS TEXT
================================ */
#result {
  min-height: 24px;
  font-size: 16px;
  margin-top: 12px;
}
