/* Cong cu "Vong quay goi ten, chia nhom" (lib/cc/vong-quay.php + assets/cc/vong-quay.js). Mau theo :root (theme giao-vien-lop). */
.vq-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: start; }
.vq-list { display: flex; flex-direction: column; gap: 12px; }
.vq-lists { display: flex; gap: 8px; align-items: flex-end; }
.vq-sel { flex: 1; min-width: 0; }
.vq-cnt { font-weight: 600; }
.vq-list textarea { min-height: 200px; }
.vq-acts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.vq-save { display: flex; gap: 8px; }
.vq-save .cc-in { flex: 1; min-width: 0; }
.vq-save .btn { flex: none; }
.vq-list .cc-note { margin: 0; }
.vq-tg { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink2); cursor: pointer; line-height: 1.35; }
.vq-tg input { width: 18px; height: 18px; accent-color: var(--pri); flex: none; margin: 0; }

/* san khau vong quay */
.vq-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; background: var(--card); min-width: 0; }
.vq-wheel-wrap { position: relative; width: min(100%, 520px); aspect-ratio: 1; }
#vq-cv { display: block; width: 100%; height: 100%; cursor: pointer; filter: drop-shadow(0 18px 30px rgba(14, 42, 71, .22)); touch-action: manipulation; }
.vq-ptr { position: absolute; left: 50%; top: -6px; width: 34px; height: 44px; transform: translateX(-50%); transform-origin: 50% 20%; z-index: 2; pointer-events: none; }
.vq-ptr::before { content: ''; position: absolute; inset: 0; background: #14213D; clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 6px; }
.vq-ptr::after { content: ''; position: absolute; left: 50%; top: 6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #FFD43B; }
.vq-ptr.flick { animation: vqflick .12s ease-out; }
@keyframes vqflick { 40% { transform: translateX(-50%) rotate(-14deg); } }
.vq-hub { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 5px solid #fff; background: #14213D; color: #fff; font: 800 clamp(12px, 2.6vw, 20px) 'Baloo 2', var(--hf), sans-serif; letter-spacing: .04em; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.3); z-index: 2; transition: transform .12s; }
.vq-hub:hover { transform: translate(-50%, -50%) scale(1.05); }
.spinning .vq-hub { pointer-events: none; opacity: .9; }
.vq-ctrl { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.vq-spin { font-size: 19px; padding: 14px 34px; }
.vq-spin kbd { font: 700 11px/1 'Be Vietnam Pro', sans-serif; background: rgba(255,255,255,.22); border-radius: 6px; padding: 4px 6px; }
.spinning .vq-spin { opacity: .6; pointer-events: none; }
.vq-tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: center; }
.vq-ib { font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; cursor: pointer; min-width: 42px; }
.vq-ib:hover { border-color: var(--pri); }
.vq-called { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; }
.vq-called-h { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 14px; }
.vq-link { border: 0; background: none; color: var(--pri); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; padding: 4px 0; }
.vq-called-l { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-height: 120px; overflow: auto; }
.vq-called-l span { font-size: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; color: var(--ink2); }

/* nguoi duoc goi */
.vq-win { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(10, 20, 40, .62); animation: vqfade .2s ease-out; }
.vq-win[hidden] { display: none; }
.vq-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: auto; }
.vq-win-card { position: relative; z-index: 1; background: var(--card); border-radius: 28px; padding: clamp(22px, 4vw, 44px) clamp(18px, 4vw, 52px); text-align: center; max-width: min(96vw, 1100px); box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); animation: vqpop .45s cubic-bezier(.2, 1.4, .4, 1); }
.vq-win-k { font-weight: 800; color: var(--ink2); font-size: clamp(16px, 2.4vw, 24px); }
.vq-win-n { font-family: 'Baloo 2', var(--hf), sans-serif; font-weight: 800; line-height: 1.05; color: var(--pri); margin: 8px 0 6px; overflow-wrap: anywhere; }
.vq-win-s { color: var(--ink2); font-weight: 600; min-height: 1.4em; }
.vq-win-b { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
@keyframes vqfade { from { opacity: 0; } }
@keyframes vqpop { from { transform: scale(.6); opacity: 0; } }

/* toan man hinh (may chieu) */
.vq-stage.is-fs { justify-content: center; padding: 2vh 2vw; background: var(--bg); overflow: auto; }
.vq-stage.vq-fake-fs { position: fixed; inset: 0; z-index: 75; }
.vq-stage.is-fs .vq-wheel-wrap { width: min(84vh, 92vw); }
.vq-stage.is-fs .vq-called { max-width: 900px; }
.vq-stage.is-fs .vq-win { position: absolute; }
.vq-stage:fullscreen { background: var(--bg); }
.vq-stage:-webkit-full-screen { background: var(--bg); width: 100%; height: 100%; }
body.vq-noscroll { overflow: hidden; }
@media (orientation: landscape) and (min-width: 600px) {
  .vq-stage.is-fs { flex-direction: row; flex-wrap: wrap; align-content: center; gap: 2vw 3vw; }
  .vq-stage.is-fs .vq-wheel-wrap { width: min(88vh, calc(96vw - 320px)); }
  .vq-stage.is-fs .vq-ctrl { width: 280px; }
  .vq-stage.is-fs .vq-called { flex-basis: 100%; }
}

/* chia nhom, boc tham */
.vq-tabs { margin-bottom: 14px; }
.vq-gopt { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 14px; }
.vq-step { display: inline-flex; gap: 6px; align-items: center; }
.vq-step .cc-in { width: 72px; text-align: center; font-weight: 800; }
.vq-gtitle { font-weight: 800; margin-bottom: 10px; }
.vq-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.vq-gc { border: 1.5px solid var(--line); border-top: 6px solid var(--c); border-radius: 16px; padding: 10px 14px; background: var(--card); break-inside: avoid; animation: vqpop .3s ease-out; }
.vq-gc-h { font-weight: 800; color: var(--c); display: flex; justify-content: space-between; gap: 8px; }
.vq-gc-h span { color: var(--ink2); font-weight: 600; font-size: 13px; }
.vq-gc ol { margin: 6px 0 0; padding-left: 22px; font-size: 15px; line-height: 1.55; }
.vq-ord { columns: 3 200px; column-gap: 24px; margin: 14px 0 0; padding-left: 34px; font-size: 16px; line-height: 1.7; }
.vq-ord li { break-inside: avoid; }
.vq-ord li::marker { font-weight: 800; color: var(--pri); }
.vq-oacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* loi moi giao vien + SEO */
.vq-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; border: 1.5px dashed var(--pri); background: linear-gradient(135deg, var(--soft), var(--card)); border-radius: 18px; padding: 14px 18px; }
.vq-cta > div { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; min-width: 0; }
.vq-cta span { font-size: 14px; color: var(--ink2); }
.vq-seo { margin-top: 40px; }
.vq-seo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.vq-seo-grid > div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; min-width: 0; }
.vq-seo-grid h3 { font-size: 17px; margin-bottom: 8px; }
.vq-seo-grid p { font-size: 15px; color: var(--ink2); margin: 0; }

@media (max-width: 860px) {
  .vq-grid { grid-template-columns: 1fr; }
  .vq-stage { order: -1; }
  .vq-seo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .vq-save { flex-direction: column; } .vq-save .btn { width: 100%; }
  #vq-fs span { display: none; }
}
@media print {
  .vq-gc { border-top-width: 3px; box-shadow: none; animation: none; }
  .vq-groups { grid-template-columns: repeat(3, 1fr); }
}
.vq-app [hidden], .vq-more [hidden] { display: none !important; }

/* diem mieng (27/10/2026) */
.vq-win-pt { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.vq-pt { color: #16A34A; font-weight: 700; margin-left: 4px; }
