
.sgtq.stage{display:grid;grid-template-columns:320px 1fr;gap:16px;color:#e7ecff;font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial}
.sgtq .col{background:#0a0f2b;border:2px solid #151d42;border-radius:12px;padding:12px}
.sgtq .brand{font-weight:900;font-size:1.5rem;margin:6px 0 10px}
.sgtq .row{margin:.55rem 0}
.sgtq .row.small{display:flex;justify-content:space-between;align-items:center}
.sgtq .row .inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sgtq label{display:block;opacity:.9;margin-bottom:4px}
.sgtq input,.sgtq select{width:100%;background:#10173a;border:1px solid #26366b;color:#e7ecff;border-radius:8px;padding:8px}
.sgtq button{background:#1e6fe0;border:none;color:#fff;padding:10px 12px;border-radius:10px;font-weight:800;cursor:pointer}
.sgtq button.primary{background:#19b36a}
.sgtq button.secondary{background:#1e6fe0}
.sgtq button.muted{background:#2b2f4d}
.sgtq button.ghost{background:transparent;border:1px solid #2b3c78}
.sgtq .status{font-size:.85rem;opacity:.85}
.sgtq .status.off{color:#f36}
.sgtq .chips{display:flex;flex-wrap:wrap;gap:6px}
.sgtq .chips .chip{background:#10173a;border:1px solid #26366b;padding:4px 8px;border-radius:999px}
.sgtq .title{font-weight:900;margin:2px 2px 10px 4px}
.sgtq .title.small{opacity:.85}
/* center */
.sgtq .card{background:#0e1331;border:2px solid #151d42;border-radius:12px;padding:12px;position:relative}
.sgtq .round{font-weight:900;margin:6px}
.sgtq .bubble{background:#00050f;border:2px solid #fff;border-radius:12px;padding:14px 16px;text-align:center;font-weight:900;margin:8px 6px 12px}
.sgtq .answers{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 6px}
.sgtq .opt{background:#232a36;border:2px solid #2c3340;border-radius:12px;padding:10px;display:flex;gap:10px}
.sgtq .opt .k{text-transform:uppercase;font-weight:900}
.sgtq .resolve-wrap{display:flex;justify-content:center;margin:10px 0}
.sgtq .resolve{background:#20c47a;border:none;border-radius:10px;padding:10px 14px;font-weight:900}



.sgtq .avatar{width:40px;height:48px;background-size:cover;image-rendering:pixelated;border:2px solid #000;border-radius:4px;position:relative}
.sgtq .avatar::after{content:'+1';position:absolute;top:-18px;left:50%;transform:translateX(-50%);opacity:0;transition:opacity .25s;color:#2ad14f;text-shadow:0 0 3px #000}
.sgtq .avatar.bump::after{opacity:1}
.sgtq .privacy{opacity:.5;margin-top:4px;font-size:.8rem}
@media (max-width:900px){.sgtq.stage{grid-template-columns:1fr}}


.sgtq .row.actions{display:flex;flex-direction:column;gap:10px;margin:10px 0}
.sgtq .row.actions button{width:100%;padding:12px;font-size:1rem;border-radius:10px}


/* Timebar */
.sgtq .timebar{height:10px;background:#1a244d;border:1px solid #2e3f7a;border-radius:999px;overflow:hidden;margin:6px 8px 14px}
.sgtq .timebar .fill{height:100%;background:#20c47a;transition:width .1s linear}

/* Ensure pause button full width too (inherits from .row.actions button) */

/* === SG TQ UI upgrades === */
.sgtq .avatars .avatar,
#avatars .avatar{
  border: none !important;
  box-shadow: none !important;
  position: relative;
}

.sgtq .avatars .avatar .name,
#avatars .avatar .name{
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  line-height: 1;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 2px 6px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
}

.sgtq .avatars .avatar .plus1,
#avatars .avatar .plus1{
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  animation: sgtqPlusOne 700ms ease-out forwards;
}

@keyframes sgtqPlusOne{
  0%{ opacity: 0; transform: translate(-50%, 0px) scale(0.8); }
  20%{ opacity: 1; transform: translate(-50%, -6px) scale(1.0); }
  100%{ opacity: 0; transform: translate(-50%, -22px) scale(1.0); }
}

/* Chips list remove 'x' */
#chips .chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 2px;
}
#chips .chip .rm{
  cursor: pointer;
  background: rgba(255,0,0,0.15);
  border: 1px solid rgba(255,0,0,0.35);
  color: #e33;
  width: 16px;
  height: 16px;
  line-height: 14px;
  border-radius: 50%;
  text-align: center;
  font-size: 12px;
  user-select: none;
}
#chips .chip .rm:hover{ background: rgba(255,0,0,0.25); }

/* Highlight correct/others on resolve */
#opt-a.correct, #opt-b.correct, #opt-c.correct, #opt-d.correct,
.sgtq .option.correct{
  background: #2ecc71 !important;
  color: #fff !important;
  border-color: #28b463 !important;
}
#opt-a.muted, #opt-b.muted, #opt-c.muted, #opt-d.muted,
.sgtq .option.muted{
  opacity: .5;
}

/* Ensure correct answer highlight */
#opt-a.correct, #opt-b.correct, #opt-c.correct, #opt-d.correct,
.sgtq .option.correct{ background:#2ecc71 !important; color:#fff !important; border-color:#28b463 !important; }
#opt-a.muted, #opt-b.muted, #opt-c.muted, #opt-d.muted,
.sgtq .option.muted{ opacity:.5; }

/* Phase tag minimal style */
#phase-tag{
  display:none;
  margin-left:8px;
  font-size:12px;
  padding:2px 6px;
  border-radius:6px;
  background:#444;
  color:#fff;
}

.opt.correct { background-color:#2ecc71 !important; color:#fff !important; }

.opt.muted { opacity:0.6; }


/* participants chips moved into preview card */
.sgtq .chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.sgtq .chips .chip{display:inline-flex;align-items:center;gap:6px}
/* Participants block styling inside preview card */
.sgtq .participants-block{margin-top:14px;margin-bottom:10px;text-align:center}
.sgtq .participants-block .round{font-size:1rem;margin-bottom:8px}

/* Chips inside preview card */
.sgtq .chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:6px}
.sgtq .chips .chip{background:#1b2148;border:1px solid #2b3c78;padding:6px 10px;border-radius:999px;display:flex;align-items:center;font-size:.9rem;font-weight:600;color:#e7ecff}
/* === Participants in Preview — styles === */
.sgtq .participants-title{margin:10px 6px 4px;font-weight:900}
.sgtq .chips{display:flex;flex-wrap:wrap;gap:8px;margin:6px; margin-top:4px; margin-bottom:10px}
.sgtq .chips .chip{
  background:#10173a;
  border:1px solid #26366b;
  padding:6px 10px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
}
/* Adjust privacy text alignment */
.sgtq .col.center .privacy{
  opacity:.5;
  font-size:.8rem;
  margin-top:12px;
  text-align:center;
}



/* Chip thumbnail (circular) */
.sgtq .chips .thumb{
  width:22px;height:22px;border-radius:999px;
  background-size:cover;background-position:center;
  border:2px solid #000;
  box-shadow:0 0 0 1px #26366b inset;
  display:inline-block;
}
.sgtq .chips .name{line-height:1.2}



/* chip circle photos */
.sgtq .chips .thumb{
  width:22px; height:22px; border-radius:999px;
  background-size:cover; background-position:center;
  border:1px solid #26366b; flex-shrink:0;
}
.sgtq .chips .name{white-space:nowrap}




/* Delete button image on chip (right) */
.sgtq .chips .rmimg{
  width:20px;height:20px;border-radius:999px;object-fit:cover;
  cursor:pointer; margin-left:6px; display:inline-block;
}
.sgtq .chips .rmimg:hover{opacity:.9}



/* Chip avatar image (<img>) */
.sgtq .chips .chipimg{
  width:22px;height:22px;border-radius:999px;object-fit:cover;
  display:inline-block; vertical-align:middle;
}


/* Chip avatar image (hardened) */
.sgtq .chips .chipimgx{
  width:22px;height:22px;border-radius:999px;object-fit:cover;
  border:2px solid #000; box-shadow:0 0 0 1px #26366b inset;
  display:inline-block; vertical-align:middle;
}

.sgtq .chips .chipimg{ border:none !important; box-shadow:none !important; }

.sgtq .chips .rmimg{ border:none !important; box-shadow:none !important; }

.sgtq .round{display:flex;justify-content:space-between;align-items:center;gap:12px}
.sgtq #round-progress{opacity:.85;font-weight:600}

/* Winner overlay */
.sgtq .winner-cta{margin-top:10px;display:flex;justify-content:flex-end}
.sgtq .winner-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(8px);display:none;align-items:center;justify-content:center;z-index:9999}
.sgtq .winner-overlay.show{display:flex}
.sgtq .winner-card{position:relative;background:#111a2b;border:1px solid #2b3b6a;border-radius:16px;padding:24px 28px;max-width:420px;width:90%;text-align:center;box-shadow:0 10px 40px rgba(0,0,0,.45)}
.sgtq .winner-img{width:120px;height:120px;border-radius:999px;object-fit:cover;border:3px solid #3dd9a3;margin-bottom:12px}
.sgtq .winner-name{font-size:24px;font-weight:800;margin-bottom:6px}
.sgtq .winner-points{opacity:.9;font-weight:700;margin-bottom:14px}
.sgtq #confetti-canvas{position:absolute;inset:0;pointer-events:none}
