/* ===== CleverMent Live Competition ===== */
body.lc-open { overflow: hidden; }
.lc-overlay { position: fixed; inset: 0; z-index: 100000; display: none; align-items: stretch; justify-content: center; background: rgba(10, 18, 40, .93); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #f8fafc; font-family: inherit; }
.lc-box { width: 100%; max-width: 760px; display: flex; flex-direction: column; min-height: 0; }
.lc-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
.lc-brand { font-weight: 800; font-size: 16px; } .lc-brand span { color: #C9A84C; font-weight: 700; }
.lc-link { background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.lc-body { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.lc-center { text-align: center; padding-top: 6vh; }
.lc-center h2, .lc-title { font-size: 26px; margin: 8px 0; text-align: center; }
.lc-small { font-size: 13px; color: #cbd5e1; margin: 6px 0; } .lc-small.center { text-align: center; }
.lc-code { font-size: 64px; font-weight: 900; letter-spacing: 10px; margin: 14px 0; color: #fff; text-shadow: 0 0 24px rgba(45,108,223,.8); }
.lc-count { font-size: 18px; margin: 8px 0; } .lc-count span { font-weight: 800; font-size: 26px; color: #C9A84C; }
.lc-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0 20px; max-height: 30vh; overflow-y: auto; }
.lc-chip { border: 2px solid #fff; border-radius: 999px; padding: 5px 6px 5px 12px; font-size: 14px; background: rgba(255,255,255,.08); }
.lc-chip button { background: none; border: 0; color: #fca5a5; font-size: 18px; cursor: pointer; line-height: 1; }
.lc-btn { background: #2d6cdf; color: #fff; border: 0; border-radius: 12px; padding: 14px 28px; font-size: 17px; font-weight: 700; cursor: pointer; min-width: 180px; }
.lc-btn:disabled { opacity: .5; cursor: not-allowed; } .lc-btn.alt { background: rgba(255,255,255,.14); }
.lc-actions { display: flex; gap: 10px; justify-content: center; margin: 18px 0 8px; flex-wrap: wrap; }
.lc-wait { text-align: center; color: #cbd5e1; margin-top: 18px; animation: lcPulse 1.6s infinite; }
@keyframes lcPulse { 50% { opacity: .45; } }
.lc-net { background: #b45309; color: #fff; text-align: center; font-size: 13px; padding: 6px; border-radius: 8px; margin-bottom: 8px; }
.lc-qhead { display: flex; justify-content: space-between; font-size: 14px; color: #cbd5e1; margin-bottom: 8px; font-weight: 600; }
.lc-timer { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lc-timebar-wrap { flex: 1; height: 12px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; }
.lc-timebar { height: 100%; border-radius: 999px; transition: width .12s linear, background .3s; }
.lc-timenum { min-width: 34px; text-align: right; font-size: 24px; font-weight: 800; }
.lc-countdown { position: fixed; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; font-size: 130px; font-weight: 900; background: #0a1228; text-align: center; }
.lc-countdown small { display: block; font-size: 26px; color: #C9A84C; font-weight: 800; margin-bottom: 4px; }
.lc-ready { text-align: center; padding-top: 12vh; } .lc-ready-t { font-size: 34px; font-weight: 900; color: #C9A84C; } .lc-ready-n { font-size: 140px; font-weight: 900; line-height: 1.1; }
.lc-topr { display: flex; gap: 8px; align-items: center; }
.lc-q { font-size: 22px; font-weight: 700; line-height: 1.35; margin: 6px 0 14px; text-align: center; }
.lc-qimg { text-align: center; margin-bottom: 12px; } .lc-qimg img { max-width: 100%; max-height: 28vh; border-radius: 10px; background: #fff; }
.lc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lc-opt { position: relative; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 12px; padding: 16px 12px; color: #fff; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; min-height: 76px; }
.lc-opt b { background: rgba(0,0,0,.25); border-radius: 8px; width: 30px; height: 30px; flex: none; display: flex; align-items: center; justify-content: center; }
.lc-opt span { flex: 1; word-break: break-word; } .lc-opt em { font-style: normal; font-weight: 800; font-size: 20px; }
.lc-opt:disabled { cursor: default; opacity: .85; } .lc-opt.picked { outline: 4px solid #fff; opacity: 1; }
.lc-opt.right { outline: 4px solid #22c55e; box-shadow: 0 0 18px rgba(34,197,94,.7); } .lc-opt.dim { opacity: .38; }
.lc-locked { text-align: center; margin-top: 16px; color: #cbd5e1; font-weight: 600; }
.lc-result { text-align: center; border-radius: 16px; padding: 22px 12px; font-size: 32px; font-weight: 900; margin: 10px 0; }
.lc-result small { display: block; font-size: 16px; font-weight: 600; margin-top: 4px; }
.lc-result.ok { background: #16a34a; } .lc-result.bad { background: #dc2626; } .lc-result.none { background: #475569; }
.lc-yourrank { text-align: center; font-size: 17px; margin: 8px 0; } .lc-yourrank.big { font-size: 22px; }
.lc-yourrank b { color: #C9A84C; font-size: 1.3em; }
.lc-h { margin: 16px 0 6px; font-size: 15px; color: #cbd5e1; text-transform: uppercase; letter-spacing: 1px; }
.lc-board { display: flex; flex-direction: column; gap: 6px; }
.lc-row { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border-radius: 10px; padding: 9px 12px; }
.lc-row.me { background: rgba(45,108,223,.55); outline: 2px solid #93c5fd; }
.lc-rank { width: 26px; font-weight: 800; color: #C9A84C; } .lc-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.lc-name { flex: 1; font-weight: 600; word-break: break-word; } .lc-gain { color: #4ade80; font-weight: 700; font-size: 13px; } .lc-score { font-weight: 800; min-width: 52px; text-align: right; }
.lc-podium { display: flex; justify-content: center; align-items: flex-end; gap: 8px; margin: 16px 0 18px; min-height: 170px; }
.lc-pod { width: 30%; max-width: 170px; text-align: center; } .lc-pod.empty { visibility: hidden; }
.lc-pod-name { font-weight: 700; font-size: 14px; word-break: break-word; } .lc-pod-score { font-size: 13px; color: #cbd5e1; margin-bottom: 4px; }
.lc-pod-bar { border-radius: 10px 10px 0 0; display: flex; align-items: flex-start; justify-content: center; font-size: 28px; font-weight: 900; padding-top: 6px; }
.lc-pod.p1 .lc-pod-bar { height: 110px; background: #C9A84C; } .lc-pod.p2 .lc-pod-bar { height: 80px; background: #94a3b8; } .lc-pod.p3 .lc-pod-bar { height: 60px; background: #b45f2a; }
.lc-stats { display: flex; gap: 8px; justify-content: center; margin: 10px 0; }
.lc-stats div { background: rgba(255,255,255,.1); border-radius: 12px; padding: 10px 14px; text-align: center; flex: 1; max-width: 150px; }
.lc-stats b { display: block; font-size: 22px; } .lc-stats span { font-size: 12px; color: #cbd5e1; }
.lc-input { display: block; width: 100%; max-width: 320px; margin: 10px auto; padding: 14px; border-radius: 12px; border: 2px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; font-size: 18px; text-align: center; }
.lc-input.code { font-size: 34px; letter-spacing: 8px; font-weight: 800; } .lc-input::placeholder { color: rgba(255,255,255,.45); }
.lc-err { color: #fca5a5; min-height: 20px; font-weight: 600; }
/* teacher / student panels (light theme) */
.lc-form { background: #fff; border: 1.5px solid #eef2f6; border-radius: 12px; padding: 14px; }
.lc-form .form-input { margin-bottom: 8px; } .lc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lc-resume { background: #fff7ed; border: 1.5px solid #fdba74; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.lc-hist { background: #fff; border: 1.5px solid #eef2f6; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; } .lc-hist summary { cursor: pointer; }
.lc-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; } .lc-table th, .lc-table td { border-bottom: 1px solid #eef2f6; padding: 6px 8px; text-align: left; }
.lc-join-card { background: #fff; border: 1.5px solid #eef2f6; border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.lc-hitem { display: flex; justify-content: space-between; gap: 10px; background: #fff; border: 1.5px solid #eef2f6; border-radius: 10px; padding: 10px 12px; margin-top: 8px; } .lc-hright { text-align: right; }
@media (max-width: 520px) { .lc-code { font-size: 46px; letter-spacing: 6px; } .lc-q { font-size: 19px; } .lc-opts { grid-template-columns: 1fr; } .lc-opt { min-height: 62px; } }

/* host: question shrinks once answers start coming in */
.lc-qblock.compact .lc-q { font-size: 14px; margin: 2px 0 6px; text-align: left; }
.lc-qblock.compact .lc-qimg img { max-height: 11vh; }
.lc-qblock.compact .lc-opts { grid-template-columns: repeat(4, 1fr); gap: 4px; }
.lc-qblock.compact .lc-opt { min-height: 34px; padding: 5px 6px; font-size: 11px; border-radius: 8px; gap: 5px; }
.lc-qblock.compact .lc-opt b { width: 20px; height: 20px; font-size: 11px; } .lc-qblock.compact .lc-opt em { font-size: 14px; }
.lc-namebox { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lc-fastest { color: #fbbf24; font-weight: 800; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; }
.lc-tag { display: inline-block; min-width: 34px; text-align: center; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 900; color: #1f2937; }
.lc-tag.t1 { background: #C9A84C; } .lc-tag.t2 { background: #cbd5e1; } .lc-tag.t3 { background: #d08a55; }
.lc-rank { min-width: 40px; } .lc-done { color: #4ade80; font-weight: 900; } .lc-pending { color: #94a3b8; }
.lc-nextin { text-align: center; font-size: 22px; font-weight: 800; color: #C9A84C; min-height: 30px; margin-top: 12px; }
.lc-btn.small { padding: 8px 18px; font-size: 14px; min-width: 0; }
/* teacher question list */
.lc-qlist { max-height: 46vh; overflow-y: auto; border: 1.5px solid #eef2f6; border-radius: 10px; background: #fff; padding: 6px; margin-bottom: 10px; }
.lc-qrow { border-bottom: 1px solid #eef2f6; padding: 8px 4px; } .lc-qrow:last-child { border-bottom: 0; }
.lc-qtxt { font-size: 14px; margin-bottom: 6px; } .lc-qthumb { display: block; max-height: 90px; max-width: 100%; border-radius: 8px; margin-bottom: 6px; border: 1px solid #eef2f6; }
.lc-qbtns { display: flex; gap: 8px; flex-wrap: wrap; } .lc-qbtns .secondary-btn { padding: 6px 12px; font-size: 13px; }
