:root{
  /* Your exact palette */
  --bg1: #006b54;
  --bg2: #1b4932;

  --green: #006b54;
  --gold: #fcc917;
  --greenTextOnGold: #006b55; /* per your request */
  --goldTextOnGreen: #fcc917;

  --white: #ffffff;

  --muted: rgba(255,255,255,0.78);
  --muted2: rgba(255,255,255,0.62);
  --stroke: rgba(255,255,255,0.16);
  --card: rgba(10, 15, 20, 0.22);
}

*{ box-sizing: border-box; }
html, body { height: 100%; margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--white); }

/* ---------- Operator ---------- */
.op-body{
  background: radial-gradient(1200px 900px at 15% 10%, rgba(252,201,23,0.18), transparent 55%),
              radial-gradient(1200px 900px at 80% 50%, rgba(0,107,84,0.35), transparent 55%),
              #081015;
}

.op-header{
  display:flex; align-items:flex-start; justify-content:space-between;
  padding: 18px 18px 6px 18px;
  gap: 12px;
}

.op-title h1{ margin: 0; font-size: 22px; letter-spacing: 0.2px; }
.op-title p{ margin: 4px 0 0 0; color: var(--muted); }

.badge{
  display:inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(252,201,23,0.18);
  border: 1px solid rgba(252,201,23,0.45);
  color: rgba(255,255,255,0.95);
  margin-bottom: 8px;
}

.op-actions{ display:flex; gap: 10px; align-items:center; }

.op-grid{
  display:grid;
  grid-template-columns: 420px 1fr 360px;
  gap: 14px;
  padding: 12px 18px 18px 18px;
}

.card{
  background: rgba(10,15,20,0.45);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}

.card h2{ margin: 0 0 10px 0; font-size: 16px; }
.muted{ color: var(--muted); }
.small{ font-size: 13px; line-height: 1.35; }

.label{ display:block; font-size: 12px; color: var(--muted2); margin: 10px 0 6px; }

.select, .textarea{
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(8,12,16,0.65);
  color: var(--white);
  padding: 10px 10px;
  font-size: 14px;
  outline: none;
}

.textarea{
  resize: vertical;
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.row{ margin-top: 10px; }
.space-between{ display:flex; justify-content:space-between; align-items:center; gap: 10px; }
.right{ display:flex; justify-content:flex-end; }

.check{
  display:flex; gap: 8px; align-items:center;
  font-size: 14px; color: rgba(255,255,255,0.92);
}

.btn-row{ display:flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

.btn{
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.95);
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
}

.btn:hover{ background: rgba(255,255,255,0.09); }
.btn:disabled{ opacity: 0.45; cursor: not-allowed; }

.btn-primary{
  background: linear-gradient(180deg, rgba(0,107,84,0.95), rgba(27,73,50,0.95));
  border-color: rgba(252,201,23,0.35);
}
.btn-primary:hover{ filter: brightness(1.05); }

.btn-danger{
  background: rgba(160,55,55,0.18);
  border-color: rgba(240,120,120,0.35);
}
.btn-warn{
  background: rgba(252,201,23,0.16);
  border-color: rgba(252,201,23,0.45);
}
.btn-ghost{ background: transparent; }

.divider{
  height: 1px;
  background: var(--stroke);
  margin: 12px 0;
}

.stat{ display:flex; gap: 10px; align-items:baseline; margin: 6px 0; }
.stat strong{ font-size: 16px; }

/* ---------- Display ---------- */
.disp-body{
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  overflow: hidden;
}

.disp-wrap{
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 2.5vh 2.5vw;
  position: relative;
}

.wheel-stage{
  position: relative;
  width: min(86vh, 86vw);
  height: min(86vh, 86vw);
  display:flex;
  align-items:center;
  justify-content:center;
}

#wheelCanvas{
  width: 100%;
  height: 100%;
  display:block;
}

/* Pointer (fixed: points DOWN into the wheel) */
.pointer{
  position:absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;

  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 42px solid var(--white); /* points DOWN */

  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.35));
}

/* Lower third */
.lower-third{
  position: absolute;
  left: 3vw;
  right: 3vw;
  bottom: 3vh;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.lower-third.show{
  opacity: 1;
  transform: translateY(0);
}

.lt-label{
  font-size: 14px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
}

.lt-text{
  margin-top: 8px;
  font-size: clamp(26px, 3.4vw, 54px);
  line-height: 1.05;
  font-weight: 800;
  color: rgba(255,255,255,0.98);
  text-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

/* Optional watermark logo: add assets/siena-logo.svg if you want */
.watermark{
  position:absolute;
  inset: 0;
  pointer-events:none;
  opacity: 0.08;
  background-repeat: no-repeat;
  background-position: 95% 8%;
  background-size: 280px auto;
  background-image: url("assets/siena-logo.svg");
}

/* Fullscreen icon button (top-right, translucent, auto-hide) */
.fs-zone{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 60;
  opacity: 1;
  transition: opacity 220ms ease;
}

.fs-zone.hidden{
  opacity: 0;
  pointer-events: none;
}

.fs-zone.visible{
  opacity: 1;
  pointer-events: auto;
}

.fs-btn{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.fs-btn:hover{
  background: rgba(0,0,0,0.28);
  border-color: rgba(255,255,255,0.70);
}

.fs-icon{
  display: inline-flex;
}