@charset "UTF-8";
/* =========================================================
   2026 남원시 영상 공모전 TOP 10 대국민 투표 (contest.css 위에 덮어씀)
   좌표는 PSD(261104_남원영상공모전투표_v2, 1920 기준) 값입니다.
========================================================= */
:root {
	--nwv-pink: #f10055;
	--nwv-blue: #0053b3;
	--nwv-navy: #001945;
	--nwv-light: #f4f2ff;
	--nwv-yellow: #fcff3a;
}

/* ---------- 1단 HERO : 1500 × 1320 무대, 1hu = PSD 1px ---------- */
.hero.vhero {
	--hu: min(1px, calc(100vw / 1500));
	background: linear-gradient(180deg, var(--nw-blue) 0, var(--nw-blue) calc(965 * var(--hu)), var(--nw-navy) calc(965 * var(--hu)), var(--nw-navy) 100%);
}
.hero.vhero .hero_stage { max-width: none; height: calc(1320 * var(--hu)); }
.hero.vhero .hero_stage::before { display: none; }
.hero.vhero .hs { left: calc(50% + (var(--x) - 960) * var(--hu)); top: calc(var(--y) * var(--hu)); width: calc(var(--w) * var(--hu)); max-width: none; transform: none; }
.hero.vhero .hs img { width: 100%; }
.hero.vhero .h_logo     { --x: 882;  --y: 68;  --w: 156; }
.hero.vhero .h_badge    { --x: 712;  --y: 140; --w: 498; }
.hero.vhero .h_copy     { --x: 620;  --y: 272; --w: 428; }
.hero.vhero .h_title    { --x: 623;  --y: 344; --w: 455; }
.hero.vhero .h_event    { --x: 610;  --y: 656; --w: 480; z-index: 5; }
.hero.vhero .h_date     { --x: 620;  --y: 740; width: 263px; z-index: 5; }
.hero.vhero .plate_1    { --x: 238;  --y: 841; --w: 340; bottom: auto; }
.hero.vhero .plate_2    { --x: 612;  --y: 830; --w: 342; bottom: auto; }
.hero.vhero .plate_3    { --x: 990;  --y: 889; --w: 324; bottom: auto; }
.hero.vhero .plate_4    { --x: 1348; --y: 770; --w: 338; bottom: auto; }
.hero.vhero .h_question { --x: 1068; --y: 924; --w: 166; z-index: 4; }
.hero.vhero .h_question img { position: absolute; left: 0; top: 0; }
.hero.vhero .h_question .q_mark { position: relative; }
.hero.vhero .h_fork     { --x: 1143; --y: 153; --w: 421; }
.hero.vhero .h_camera   { --x: 1164; --y: 587; --w: 265; }
.hero.vhero .h_slogan {
	left: calc(50% + (627 - 960) * var(--hu)); top: calc(1169 * var(--hu));
	width: calc(676 * var(--hu)); height: calc(63 * var(--hu));
	font-size: calc(45 * var(--hu));
}
.hero.vhero .h_slogan .br { border-width: max(1.5px, calc(3 * var(--hu))); }
.hero.vhero .h_slogan .blank { left: 41.9%; width: 27.4%; bottom: 23%; height: max(2px, calc(4 * var(--hu))); }
.hero.vhero .h_slogan .type_2 { left: 70.9%; }

.hero.vhero.is-play .h_event    { animation: nwvStamp .75s 1.05s cubic-bezier(.3,1.5,.5,1) both; }
.hero.vhero.is-play .h_date     { animation: nwFadeUp .8s 1.2s cubic-bezier(.2,.8,.2,1) both; }
.hero.vhero.is-play .h_question { animation: nwPlate .8s 1.5s cubic-bezier(.3,1.4,.5,1) both; }
.hero.vhero.is-play .h_question .q_corners { animation: nwvBlink 1.2s 2.4s steps(2, jump-none) infinite; }
.hero.vhero.is-play .h_question .q_mark { animation: nwvWobble 2.6s 2.4s ease-in-out infinite; transform-origin: 50% 80%; }
.hero.vhero.is-play .h_camera::after { content: none; }
.hero.vhero.no-motion .h_question img { animation: none !important; }

@keyframes nwvStamp { 0% { opacity: 0; transform: scale(1.35); } 60% { opacity: 1; transform: scale(.96); } 100% { opacity: 1; transform: none; } }
@keyframes nwvBlink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
@keyframes nwvWobble { 0%, 60%, 100% { transform: none; } 70% { transform: rotate(-8deg); } 80% { transform: rotate(6deg); } 90% { transform: rotate(-3deg); } }

/* ---------- 2단 대국민 투표 : 720 컬럼, 1vu = PSD 1px ---------- */
.vote { --vu: min(1px, calc((100vw - 32px) / 720)); position: relative; font-family: "Noto Sans KR", "Pretendard", sans-serif; }
.vote :where(img) { display: block; width: 100%; max-width: none; height: auto; }
.vote_intro { background: var(--nwv-light); padding-top: calc(53 * var(--vu)); }
.vote_head { width: calc(600 * var(--vu)); margin: 0 auto; }
.vote_guide { width: calc(720 * var(--vu)); margin: calc(38 * var(--vu)) auto 0; }
.vote_gift_wrap { position: relative; z-index: 2; width: calc(540 * var(--vu)); height: calc(237 * var(--vu)); margin: 0 auto; }
.vote_gift { position: absolute; left: 0; top: 0; }
.vote_gift img { width: calc(540 * var(--vu)); }

.vote_list { position: relative; background: var(--nwv-navy); padding: calc(117 * var(--vu)) 0 calc(199 * var(--vu)); }
.vote_list_title { width: calc(622 * var(--vu)); margin: 0 auto; }
.vote_cards {
	display: grid; grid-template-columns: repeat(2, calc(346 * var(--vu))); justify-content: center;
	column-gap: calc(22 * var(--vu)); row-gap: calc(26 * var(--vu));
	margin: calc(49 * var(--vu)) auto 0; padding: 0; list-style: none;
}
.vote_card { display: flex; flex-direction: column; align-items: center; }
.vc_box {
	display: flex; flex-direction: column; width: 100%;
	border: 1px solid #1e1e1e; background: #fff;
	box-shadow: 0 calc(6 * var(--vu)) 0 rgba(0, 9, 33, .55);
	transition: transform .25s, box-shadow .25s;
}
.vote_card:hover .vc_box { transform: translateY(-4px); }
.vc_title {
	display: flex; align-items: center; justify-content: center; min-height: calc(56 * var(--vu));
	padding: calc(6 * var(--vu)) calc(8 * var(--vu)); background: var(--nwv-pink);
	color: #fff; font-size: max(12px, calc(22 * var(--vu))); font-weight: 500; line-height: 1.3; letter-spacing: -.03em; text-align: center; word-break: keep-all;
}
.vc_title em { font-style: normal; font-weight: 700; color: var(--nwv-yellow); }
/* 제목 바 색은 순서와 상관없이 자리 기준 (1·4·5·8·9 핑크 / 2·3·6·7·10 블루) */
.vote_card:nth-child(4n+2) .vc_title,
.vote_card:nth-child(4n+3) .vc_title { background: var(--nwv-blue); }
.vc_thumb { position: relative; display: block; width: 100%; border-top: 1px solid #000; border-bottom: 1px solid #000; overflow: hidden; background: #000; cursor: pointer; }
.vc_thumb img { aspect-ratio: 344 / 197; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.vc_thumb:hover img, .vc_thumb:focus-visible img { transform: scale(1.06); }
.vc_play {
	position: absolute; left: 50%; top: 50%; width: calc(64 * var(--vu)); height: calc(44 * var(--vu)); min-width: 38px; min-height: 26px;
	border-radius: 12px; background: rgba(241, 0, 85, .9); transform: translate(-50%, -50%) scale(.6); opacity: 0;
	transition: opacity .25s, transform .25s;
}
.vc_play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -7px 0 0 -4px; border-left: 13px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.vc_thumb:hover .vc_play, .vc_thumb:focus-visible .vc_play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vc_more {
	display: flex; align-items: center; justify-content: center; gap: calc(14 * var(--vu));
	min-height: calc(59 * var(--vu)); padding: 6px 0; background: #fff; color: var(--nwv-navy);
	font-size: max(12px, calc(17.5 * var(--vu))); font-weight: 700; letter-spacing: -.02em; cursor: pointer;
}
.vc_more::after {
	content: ""; width: calc(8 * var(--vu)); height: calc(8 * var(--vu)); min-width: 6px; min-height: 6px;
	border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; transform: rotate(45deg);
	transition: transform .2s;
}
.vc_more:hover::after { transform: translateX(3px) rotate(45deg); }

/* 작품 선택 (최대 3편) */
.vc_pick { position: relative; display: block; margin-top: calc(20 * var(--vu)); cursor: pointer; }
.vc_pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.vc_radio {
	display: block; width: calc(24 * var(--vu)); height: calc(24 * var(--vu)); min-width: 20px; min-height: 20px;
	border: max(2.5px, calc(3 * var(--vu))) solid #fff; border-radius: 50%; background: var(--nwv-navy);
	box-shadow: inset 0 0 0 max(2px, calc(1 * var(--vu))) var(--nwv-navy); transition: background .2s;
}
.vc_pick input:checked + .vc_radio { background: var(--nwv-pink); animation: nwvPick .35s cubic-bezier(.3,1.6,.5,1); }
.vc_pick input:focus-visible + .vc_radio { outline: 3px solid #7fa0ff; outline-offset: 3px; }
.vote_card.is-picked .vc_box { box-shadow: 0 0 0 3px var(--nwv-pink), 0 calc(6 * var(--vu)) 0 rgba(0, 9, 33, .55); }
@keyframes nwvPick { from { transform: scale(.6); } to { transform: none; } }

.vote_count { margin: calc(26 * var(--vu)) 0 0; text-align: center; color: rgba(255,255,255,.85); font-size: max(13px, calc(18 * var(--vu))); font-weight: 500; }
.vote_count strong { color: #fff; font-weight: 700; }
.vote_count b { color: var(--nwv-pink); font-weight: 700; }
.vote_btns { display: flex; justify-content: center; gap: calc(25 * var(--vu)); margin-top: calc(25 * var(--vu)); }
.vote_btns .vbtn { display: block; width: calc(338 * var(--vu)); transition: transform .25s; }
.vote_btns .vbtn:hover { transform: translateY(-4px); }
.vote_btns .vbtn_vote img { animation: nwvPulse 2.2s ease-in-out infinite; }

@keyframes nwvFloat { 0%, 100% { transform: none; } 50% { transform: translateY(-8px); } }
@keyframes nwvPulse { 0%, 100% { transform: none; } 50% { transform: scale(1.04); } }

/* 2단(공모전 개요) 이후 : 참여 방법 표·버튼이 빠진 새 이미지 */
.is-vote .sec_overview { padding: 85px 0 65px; }

/* ---------- 투표 팝업 (접수 팝업 스타일 재사용) ---------- */
.vote_popup .apply_form .form_group { grid-template-columns: 154px minmax(0, 1fr); margin-top: 12px; }
.vote_popup .apply_form .label { font-size: 20px; }
.vote_popup .vf_value {
	display: flex; align-items: center; min-height: 50px; padding: 8px 18px; background: #fff; color: #111;
	font-size: 17px; line-height: 1.4; word-break: keep-all;
}
.vote_popup .vf_value.is-empty { color: #a5a5a5; }
.vote_popup .file_label .file-btn {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	height: 32px; padding: 0 12px; background: var(--nwv-pink); color: #fff; font-size: 15px; font-weight: 600;
}
.vote_popup .file_label.has-file .file-name { color: #111; }
.vote_popup .vf_note { grid-column: 2; margin-top: 8px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.8); }
.vote_popup .apply_btns button { display: block; width: 220px; max-width: calc(50% - 7px); transition: transform .2s; }
.vote_popup .apply_btns button:hover { transform: translateY(-3px); }
.vote_popup .apply_btns button[disabled] { opacity: .6; cursor: wait; }
.vote_popup .apply_btns img { display: block; width: 100%; }
.vote_popup .term_box p + p { margin-top: 0; }

/* ---------- 작품 영상 팝업 ---------- */
.video_popup .b_popup_inner { max-width: 900px; padding: 0; background: transparent; color: #fff; }
.video_popup .vp_head { display: flex; align-items: center; gap: 14px; margin: 0 52px 16px 0; }
.video_popup .vp_label { flex: 0 0 auto; padding: 6px 14px; border-radius: 30px; background: var(--nwv-pink); font-size: 15px; font-weight: 700; line-height: 1; }
.video_popup .vp_title { min-width: 0; font-size: 24px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.video_popup .vp_title .vp_bar { margin: 0 .45em; color: rgba(255,255,255,.45); font-weight: 400; }
.video_popup .vp_frame { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.video_popup .vp_frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video_popup .btn_close_popup { right: -6px; top: -10px; color: #fff; font-size: 44px; }
.video_popup .vp_foot { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.video_popup .vp_pick {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 220px; height: 54px; padding: 0 26px;
	border-radius: 40px; background: var(--nwv-blue); color: #fff; font-size: 18px; font-weight: 700;
}
.video_popup .vp_pick.is-on { background: var(--nwv-pink); }
.video_popup .vp_pick::before { content: ""; width: 14px; height: 14px; border: 3px solid #fff; border-radius: 50%; }
.video_popup .vp_pick.is-on::before { background: #fff; box-shadow: inset 0 0 0 3px var(--nwv-pink); }

/* ---------- 플로팅 ---------- */
.floating_pc.nwv_float { right: max(20px, calc(50vw - 960px + 85px)); top: min(279px, 14.5vw); width: 160px; }
.nwv_float { position: fixed; }
.nwv_float img { display: block; width: 100%; }
.nwv_float .f_hit { position: absolute; left: 0; width: 100%; }
.floating_pc.nwv_float .f_sub  { top: 0;     height: 38.7%; }
.floating_pc.nwv_float .f_vote { top: 38.7%; height: 38%; }
.floating_pc.nwv_float .f_qna  { top: 76.7%; height: 23.3%; }
.floating_pc.nwv_float .f_vote img { animation: none; }
.floating_mo.nwv_float .f_hit { top: 0; height: 100%; width: 33.333%; }
.floating_mo.nwv_float .f_sub  { left: 0; }
.floating_mo.nwv_float .f_vote { left: 33.333%; }
.floating_mo.nwv_float .f_qna  { left: 66.666%; }

/* ---------- 태블릿 / 모바일 ---------- */
@media (max-width: 991px) {
	body.is-vote { padding-bottom: calc(13.2vw + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 767px) {
	/* 1단 : 760 폭 모바일 배치, 1mu = 100vw / 760 */
	.hero.vhero {
		--mu: calc(100vw / 760);
		background: linear-gradient(180deg, var(--nw-blue) 0, var(--nw-blue) calc(1110 * var(--mu)), var(--nw-navy) calc(1110 * var(--mu)), var(--nw-navy) 100%);
	}
	.hero.vhero .hero_stage { display: block; height: calc(1490 * var(--mu)); min-height: 0; padding: 0; }
	.hero.vhero .hs,
	.hero.vhero .h_logo, .hero.vhero .h_badge, .hero.vhero .h_title, .hero.vhero .h_copy {
		position: absolute; left: calc(var(--mx) * var(--mu)); top: calc(var(--my) * var(--mu)); right: auto; bottom: auto;
		width: calc(var(--mw) * var(--mu)); margin: 0; align-self: auto; transform: none;
	}
	.hero.vhero .h_logo     { --mx: 302; --my: 46;   --mw: 156; }
	.hero.vhero .h_badge    { --mx: 131; --my: 116;  --mw: 498; }
	.hero.vhero .h_copy     { --mx: 46;  --my: 252;  --mw: 428; }
	.hero.vhero .h_title    { --mx: 49;  --my: 320;  --mw: 400; }
	.hero.vhero .h_event    { --mx: 36;  --my: 590;  --mw: 440; }
	.hero.vhero .h_date     { --mx: 46;  --my: 672;  --mw: 263; }
	.hero.vhero .h_fork     { --mx: 452; --my: 230;  --mw: 300; }
	.hero.vhero .h_camera   { --mx: 470; --my: 556;  --mw: 189; }
	.hero.vhero .plate_1    { --mx: 26;  --my: 1030; --mw: 340; z-index: 4; }
	.hero.vhero .plate_2    { --mx: 396; --my: 1020; --mw: 342; z-index: 4; }
	.hero.vhero .plate_4    { --mx: 26;  --my: 740;  --mw: 338; z-index: 2; }
	.hero.vhero .plate_3    { --mx: 405; --my: 820;  --mw: 324; z-index: 2; }
	.hero.vhero .h_question { --mx: 483; --my: 855;  --mw: 166; z-index: 3; }
	.hero.vhero .h_slogan {
		left: calc(42 * var(--mu)); top: calc(1350 * var(--mu)); bottom: auto;
		width: calc(676 * var(--mu)); height: calc(63 * var(--mu)); font-size: calc(45 * var(--mu));
	}

	.vote { --vu: calc((100vw - 24px) / 720); }
	.vc_title { min-height: 46px; padding: 6px; }
	.vc_more { min-height: 38px; gap: 6px; }
	.vote_cards { row-gap: 18px; }
	.vc_pick { margin-top: 12px; }

	.is-vote .sec_overview { padding: 50px 0 50px; }

	.vote_popup .apply_form .form_group { grid-template-columns: 96px minmax(0, 1fr); margin-top: 10px; }
	.vote_popup .apply_form .label { font-size: 15px; height: 46px; padding: 0 6px; }
	.vote_popup .apply_form input[type="text"], .vote_popup .apply_form input[type="tel"] { height: 46px; padding: 0 12px; font-size: 16px; }
	.vote_popup .vf_value { min-height: 46px; padding: 8px 12px; font-size: 15px; }
	.vote_popup .file_label { height: 46px; padding: 0 6px 0 12px; }
	.vote_popup .file_label .file-name { font-size: 15px; }
	.vote_popup .file_label .file-btn { height: 30px; padding: 0 9px; font-size: 13px; }
	.vote_popup .vf_note { grid-column: 1 / -1; font-size: 12.5px; }

	.video_popup .vp_head { flex-direction: column; align-items: flex-start; gap: 8px; margin-right: 40px; }
	.video_popup .vp_title { font-size: 18px; }
	.video_popup .vp_pick { min-width: 0; width: 100%; height: 50px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.vote_btns .vbtn_vote img, .hero.vhero .h_question img { animation: none !important; }
	.vc_thumb img, .vc_box { transition: none; }
}
