/* 선거전 '가는 길' 오락실(js/campaign-run.js): 전체 화면, 화면 어디를 눌러도 점프 */
.cprun { position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: max(12px, env(safe-area-inset-top)) 10px max(14px, env(safe-area-inset-bottom)); background: #0E0B16; color: #FFF1DC; font-family: Paperlogy, 'Noto Sans KR', sans-serif; touch-action: manipulation; user-select: none; -webkit-user-select: none; cursor: pointer; }
body.cprun-on { overflow: hidden; }
.cprun, .cprun * { box-sizing: border-box; }
.cprun [hidden] { display: none !important; }
.cprun-top { display: flex; align-items: center; justify-content: space-between; max-width: 440px; width: 100%; margin: 0 auto; font-size: 14px; font-weight: 800; color: #E8DCC4; }
.cprun-skip { appearance: none; border: 1.5px solid #463A5C; background: transparent; color: #BFAF95; border-radius: 999px; padding: 6px 12px; font: 800 12px Paperlogy, sans-serif; cursor: pointer; }
.cprun-cab { max-width: 440px; width: 100%; margin: 0 auto; background: linear-gradient(#2A2338, #1B1626); border-radius: 22px 22px 14px 14px; padding: 12px 12px 14px; box-shadow: 0 4px 0 #0c0a12, inset 0 0 0 3px #463A5C; }
.cprun-mq { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 6px 10px; padding: 7px 10px; border-radius: 10px; background: #120F1A; box-shadow: inset 0 0 0 2px #C9A34E; font-size: 17px; font-weight: 800; }
.cprun-mq small { font-size: 11px; color: #BFAF95; }
.cprun-scr { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 3px #000, 0 0 0 3px #3A314C; }
.cprun-scr canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.cprun-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.10) 0 1px, transparent 1px 3px); }
.cprun-hud { position: absolute; left: 8px; right: 8px; top: 6px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; font-weight: 800; text-shadow: 0 2px 0 #000; }
.cprun-hud small { display: block; font-size: 9px; color: #BFAF95; letter-spacing: .08em; }
.cprun-hud b { font-size: 18px; font-variant-numeric: tabular-nums; } .cprun-hud .cprun-c { text-align: center; } .cprun-hud .cprun-r { text-align: right; }
.cprun-lv { display: flex; gap: 3px; margin-top: 2px; justify-content: flex-end; }
.cprun-lv i { position: relative; width: 12px; height: 11px; background: #6D4FD1; clip-path: polygon(50% 100%, 0 40%, 0 15%, 20% 0, 50% 18%, 80% 0, 100% 15%, 100% 40%); filter: drop-shadow(0 1px 0 #000); }
.cprun-lv i.cprun-off { background: #3A314C; }
.cprun-lv i.cprun-brk { background: #E8553E; animation: cprunBreak .55s ease-out forwards; }   /* 깨지는 하트: 붉게 → 갈라져 사라짐 */
@keyframes cprunBreak { 0% { transform: scale(1.5); background: #FF8A6B; } 35% { transform: scale(1.2) rotate(-12deg); clip-path: polygon(50% 100%, 0 40%, 0 15%, 20% 0, 46% 18%, 40% 55%, 56% 70%); } 100% { transform: scale(.9) rotate(8deg); background: #3A314C; } }
.cprun-bn { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; text-align: center; font-weight: 800; text-shadow: 0 3px 0 #000; }
.cprun-bn p { margin: 0; font-size: 30px; } .cprun-bn small { display: block; margin-top: 6px; font-size: 13px; color: #E8DCC4; }
.cprun-bn.cprun-go p { animation: cprunPop .7s ease-out both; }
.cprun-card { background: rgba(18,15,26,.88); border-radius: 12px; padding: 12px 18px; box-shadow: inset 0 0 0 2px #C9A34E; }
.cprun-card p { font-size: 22px; } .cprun-card .cprun-row { margin-top: 6px; font-size: 14px; } .cprun-card .cprun-row b { color: #CBBEFF; }
@keyframes cprunPop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
.cprun-pn { display: flex; align-items: center; gap: 10px; margin: 12px 4px 0; padding: 8px 12px; border-radius: 10px; background: linear-gradient(#231D31, #17121F); box-shadow: inset 0 0 0 2px #3A314C; color: #BFAF95; font-size: 12px; font-weight: 800; }
.cprun-pn .cprun-p1 { padding: 1px 7px; border-radius: 5px; background: #6D4FD1; color: #FFF1DC; font-size: 11px; }
.cprun-pn .cprun-t { flex: 1; text-align: center; color: #FFF1DC; font-size: 13px; }
.cprun-pn .cprun-coin { width: 9px; height: 18px; border-radius: 3px; background: #0c0a12; box-shadow: inset 0 0 0 2px #463A5C; }
@media (prefers-reduced-motion: reduce) { .cprun-bn.cprun-go p, .cprun-lv i.cprun-brk { animation: none; } .cprun-lv i.cprun-brk { background: #3A314C; } }
/* PC: 오락기를 화면 높이에 맞춰 키운다(누르는 자리는 화면 전체라 좌표와 무관) */
@media (min-width: 900px) and (min-height: 620px) { .cprun-top, .cprun-cab { zoom: 1.3; } }
@media (min-width: 900px) and (min-height: 760px) { .cprun-top, .cprun-cab { zoom: 1.5; } }
@media (min-width: 1400px) and (min-height: 980px) { .cprun-top, .cprun-cab { zoom: 1.85; } }
