/* 퀴즈 공통 (학생·TV) — kit.css 다음에 불러옵니다 */
:root { --en: "Baloo 2", "Nunito", "Noto Sans KR", sans-serif; --ok: #10b981; }
#stage { font-family: var(--f); }
.qhead { position: absolute; left: 50%; top: 24px; translate: -50% 0; display: flex; align-items: center; gap: 14px; background: var(--card); border: 4px solid var(--ink); border-radius: 22px;
  box-shadow: 0 6px 0 rgba(43,45,66,.28); padding: 8px 24px; font-size: 32px; font-weight: 900; white-space: nowrap; }
.qhead .qn { font-family: var(--en); font-weight: 800; background: var(--ink); color: #ffd166; border-radius: 12px; padding: 0 14px; }
.timer { position: absolute; left: 400px; right: 400px; top: 112px; height: 16px; border-radius: 99px; background: rgba(255,255,255,.75); border: 3px solid var(--ink); overflow: hidden; }
.timer i { display: block; height: 100%; width: 100%; background: var(--ok); transform-origin: left; transition: transform .15s linear; }
.timer.low i { background: #f43f5e; }
/* 보기 4개 */
.opt { position: relative; border: 5px solid var(--ink); border-bottom-width: 12px; border-radius: 28px; background: var(--c); color: #fff; cursor: pointer; padding: 18px 22px 18px 92px;
  display: flex; align-items: center; justify-content: center; text-align: center; min-width: 0; overflow: hidden; transition: transform .1s, opacity .2s, filter .2s; }
.opt:active { transform: translateY(5px); border-bottom-width: 7px; }
.opt .sh { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--d);
  display: grid; place-items: center; font-size: 34px; line-height: 1; border: 3px solid var(--ink); }
.opt .ot { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--en); font-weight: 800; line-height: 1.12; word-break: keep-all; overflow-wrap: normal;
  text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.opt.img { background: #fff; padding-left: 92px; }
.opt.img::after { content: ''; position: absolute; inset: 0; border-left: 70px solid var(--c); pointer-events: none; }
.opt.img .sh { z-index: 1; }
.opt.img .ot { text-shadow: none; }
.opts.done .opt { cursor: default; }
.opts.done .opt:not(.pick):not(.right) { opacity: .35; filter: grayscale(.4); }
.opt.pick { box-shadow: 0 0 0 8px #fff, 0 0 0 14px var(--ink); transform: scale(1.02); }
.opt.right { box-shadow: 0 0 0 8px #fff, 0 0 0 16px #10b981; opacity: 1 !important; filter: none !important; }
.opt.right::before { content: '⭕'; position: absolute; right: 14px; top: 10px; font-size: 44px; z-index: 2; }
.opt.wrong::before { content: '❌'; position: absolute; right: 14px; top: 10px; font-size: 44px; z-index: 2; }
.blank { display: inline-block; min-width: 3.2em; border-bottom: .12em solid #f43f5e; margin: 0 .15em; background: #fff1f2; border-radius: .2em .2em 0 0; }
/* 덮개: 보라 밤하늘 + 별 무늬 */
.night { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.9) 0 2px, transparent 3px) 0 0/120px 120px,
              radial-gradient(circle at 70% 60%, rgba(255,255,255,.7) 0 2px, transparent 3px) 0 0/160px 160px,
              radial-gradient(circle at 40% 80%, rgba(255,214,102,.9) 0 3px, transparent 4px) 0 0/210px 210px,
              linear-gradient(#1e1b4b, #4c1d95 60%, #7e22ce); opacity: .97; }
.cnt { font-family: var(--en); font-weight: 800; font-size: 300px; line-height: 1; color: #ffd166; animation: pop .5s; }
.readyq { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; animation: pop .45s; }
.tpill { background: #fff; color: var(--ink); border: 5px solid #ffd166; border-radius: 999px; padding: 10px 40px; font-size: 64px; font-weight: 900; white-space: nowrap; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); } }
