/* 구독 폰 목업 공통 베이스 — '문제 화면' 스텝(step02/03 등)이 공유.
   상단(헤더·메타·문제·보기)은 base.js의 renderTop(DATA)이 그리며 모양은 step02 기준으로 통일.
   하단 기능부(OMR 패널 / 해설·심화 탭 등)는 각 step 파일에서 정의한다. */
:root { --blue: #2097FF; --gold: #FBB400; --ink: #2c2e36; --sub: #8a8f98; --line: #ededf0; --circle: #c9cdd4; --x: #c5c9cf; --badge-bg: #f0f0f3; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; width: 100%; background: #0e0f12; overflow: hidden; }
body { font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif; display: flex; align-items: center; justify-content: center; -webkit-font-smoothing: antialiased; }
#stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#canvas { width: 430px; height: 768px; background: #fff; position: relative; transform-origin: center center; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
/* ===== 공통 상단: 앱바 + 서브헤더(벨/clovi/tip) + 메타 + 문제 + 보기 (renderTop이 채움) ===== */
.topbar { display: flex; align-items: center; gap: 8px; padding: 12px 18px 6px; }
.chev { width: 26px; height: 26px; color: #3a3d44; flex: none; }
.topbar .ttl { font-size: 23px; font-weight: 800; color: var(--blue); letter-spacing: -0.4px; }
.subhead { position: relative; display: flex; align-items: flex-start; justify-content: space-between; padding: 6px 18px 12px; }
.subhead .left .h { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }
.subhead .left .h b { color: var(--blue); }
.subhead .left .s { font-size: 16px; color: var(--sub); margin-top: 5px; letter-spacing: -0.2px; }
.subhead .right { display: flex; align-items: center; gap: 12px; }
.bell { width: 26px; height: 26px; flex: none; filter: grayscale(1); }
.mascot { width: 46px; height: 46px; flex: none; object-fit: contain; }
.tip { position: absolute; right: 14px; top: 66px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 700; padding: 6px 13px; border-radius: 9px; letter-spacing: -0.2px; box-shadow: 0 4px 10px rgba(32,151,255,.3); }
.tip::after { content: ""; position: absolute; top: -5px; right: 24px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid var(--blue); }
.meta { display: flex; align-items: center; gap: 18px; padding: 2px 20px 12px; font-size: 16px; color: var(--sub); letter-spacing: -0.2px; }
.meta .o { color: var(--blue); font-weight: 800; }
.meta .clock { display: flex; align-items: center; gap: 5px; margin-left: auto; color: #9aa0a8; }
.meta .clock svg { width: 17px; height: 17px; }
.divider { height: 1px; background: var(--line); }
.qbody { padding: 16px 20px 0; }
.qhead { display: flex; align-items: center; gap: 9px; }
.qhead .num { font-size: 19px; font-weight: 800; color: var(--ink); }
.qhead .stars { color: var(--gold); font-size: 19px; letter-spacing: 1px; }
.qhead .badge { margin-left: auto; background: var(--badge-bg); color: #9a9aa2; font-size: 15px; font-weight: 700; padding: 5px 12px; border-radius: 7px; }
.qtext { margin-top: 16px; font-size: 22px; font-weight: 800; line-height: 1.5; color: #23252c; letter-spacing: -0.3px; text-wrap: pretty; }
.options { margin-top: 16px; display: flex; flex-direction: column; }
.opt { display: flex; align-items: center; gap: 13px; padding: 13px 2px; border-bottom: 1px solid #f4f4f6; }
.opt:last-child { border-bottom: none; }
.opt .n { width: 31px; height: 31px; border-radius: 50%; border: 1.5px solid var(--circle); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: #54575f; flex: none; }
.opt .t { font-size: 19px; color: #2e3138; letter-spacing: -0.3px; flex: 1; }
.opt .x { width: 22px; height: 22px; color: var(--x); flex: none; }
/* 자동 데모 커서 / 물결 */
.cursor { position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; background: rgba(40,50,68,.18); border: 2.5px solid rgba(40,50,68,.46); transform: translate(-50%,-50%) scale(1); opacity: 0; pointer-events: none; z-index: 60; transition: left .3s cubic-bezier(.34,.02,.2,1), top .3s cubic-bezier(.34,.02,.2,1), opacity .25s ease, transform .12s ease; }
.cursor.press { transform: translate(-50%,-50%) scale(.74); background: rgba(40,50,68,.3); }
.ripple { position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--blue); transform: translate(-50%,-50%) scale(.5); opacity: 0; pointer-events: none; z-index: 59; }
.ripple.go { animation: rip .6s ease-out forwards; }
@keyframes rip { 0% { opacity: .55; transform: translate(-50%,-50%) scale(.5); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(2.4); } }
.hidden { display: none; }
