/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&family=Outfit:wght@100..900&family=Protest+Riot&display=swap');

/* font-family: "Noto Sans KR", sans-serif; */
/* font-family: "Outfit", sans-serif; */

@font-face {
    font-family: 'Ria';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2410-1@1.0/RiaSans-ExtraBold.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SchoolSafetyNotification';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-5@1.0/HakgyoansimAllimjangTTF-R.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
	font-family: "Noto Sans KR", sans-serif; 
	font-weight: 400;
}

ol, ul {
    list-style: none
}

blockquote,
q {
    quotes: '"' '"'
}

blockquote:after,
blockquote:before,
q:after,
q:before {
    content: '';
    content: none
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

address {
    font-style: normal
}

textarea {
    width: 100%;
    resize: none;
}

button, img, input, select {
    vertical-align: middle
}

.ellipsis {
	display:inline-block;
	max-width:100%;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	word-wrap: normal;
	vertical-align:middle
}

table td a {
    overflow: hidden;
    height: auto;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

body, html {
	overflow-x:hidden;
}

body {
	color:#353535;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	-webkit-user-drag: none;
}

::selection {
   background: #d99b71;
   color: #fff
}

::-moz-selection {
   background: #d99b71;
   color: #fff
}

::-webkit-selection {
    background: #d99b71;
   color: #fff
}

area {
    cursor: pointer;
}

button {
	background-color: transparent;
	border: none;
	outline: none;
	cursor: pointer;
}

.rel {
    position: relative;
}

.font_outfit {
	font-family: "Outfit", sans-serif; 
}

.container {
    max-width: 1920px;
    margin: auto;
}

.section .inner {
    max-width: 750px;
    margin: auto;
    text-align: center;
}

.section.main {
	background-image: url('/PROJECT_HTML/2026miryang_arirang/img/main_bg.jpg?new');
	background-size: cover;
	background-position: center;
	height: 998px;
	padding-top: 72px;
	z-index: 8;
}

.section.main .bg_obj {
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	right: 0;
	bottom: 30px;
	background-image: url('/PROJECT_HTML/2026miryang_arirang/img/main_bg_obj.png?new');
	background-size: auto;
	background-position: center 100%;
	background-repeat: no-repeat;
}

.section.main .bg_obj_melody {
	position: absolute;
	width: 100%;
	left: 50%;
	transform: translateX(-50%);
	bottom: 170px;
	text-align: center;
	min-width: 1396px;
}

.section.main .bg_obj_people {
	position: absolute;
	width: 100%;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	text-align: center;
	bottom: 30px;
	min-width: 1726px;
}

.section.main .main_obj {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -30px;
	z-index: 4;
	min-width: 592px;
}

.section.main .main_obj_pig {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -70px;
	z-index: 8;
}

.section.main .logo {
	margin-bottom: 48px;
}

.section.main .text_wrap .top {
	margin-bottom: 20px;
}

.section.main .text_wrap .md {
	margin-bottom: 32px;
}

.section_02 {
	padding: 100px 0;
	background-color: #272e83;
}

.section_02 .btn_box {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin-top: 48px;
}

.section_03 {
	padding: 100px 0;
	background-color: #9aebff;
}

.section_03 .event_info {
	margin-bottom: 80px;
}

.section_03 .game_section .title {
	margin-bottom: 32px;
}

.section_04 {
	padding-top: 100px;
}

.section dl {
	display: flex;
	justify-content: flex-start;
	margin: auto;
	color: #09003e;
	margin-bottom: 4px;
}

.section dl:last-of-type {
	margin-bottom: 0;
}

.section dt {
	padding-right: 3px;
}

.section dd {
	text-align: left;
}

.section.sns {
	padding: 176px 0 80px;
	margin-top: -92px;
	background-color: #303571;
}

.section.section_05 {
	background-color: #ffd58a;
	padding: 80px 0;
	text-align: left;
}

.footer {
	padding: 60px 0;
}

.footer .info {
	margin-top: 30px;
}

.footer .info p {
	font-weight: 700;
}



/* 오버레이 (팝업) */
.b_popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.7);
  overflow: auto;
  display: none; /* 기본 숨김 */
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}

.b_popup.is-open { display: flex; } /* 열릴 때 flex */

.b_popup_inner {
  position: relative;
  width: min(750px, 100%);
  border-radius: 12px;
  max-height: calc(100svh - 48px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #fff;
  padding: 28px;
}

.b_popup_title {
    padding: 28px;
    margin-bottom: 40px;
	text-align: center;
}

.b_popup_title span {
    font-family: 'Ria';
    font-weight: 900;
}

.b_popup_title .btn_close_popup {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #999;
    background: transparent;
    border: none;
    outline: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.b_popup_content  .form_group {
    display: flex;
    align-items: center;
	overflow: hidden;
	border-top: 1px solid #000;
}

.b_popup_content  .form_group label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 166px;
    height: 70px;
    font-size: 24px;
    background-color: #272e83;
    color: #fff;
	font-family: 'SchoolSafetyNotification';
}

.b_popup_content  .form_group:nth-child(5) label {
	background-color: #161c5f;
}

.b_popup_content  .form_group:nth-child(6) {
	border-bottom: 1px solid #000;
	margin-bottom: 24px;
}

.b_popup_content .form_group input {
    width: 514px;
    height: 70px;
    padding: 0 12px;
    font-size: 24px;
    border-radius: 0px;
    border: none;
    outline: none; 
	font-family: 'SchoolSafetyNotification';
	background-color: #fff;
}

 .yt-id-hint,
 .yt-id-hint * {
	font-family: 'SchoolSafetyNotification';
 }
 
  .yt-id-hint ins,
  .yt-id-hint b {
	font-weight: bold;
  }

.b_popup_content .form_group input::placeholder {
	font-size: 20px;
}

.b_popup_content .pharases {
    padding: 0 12px 12px;
}

.b_popup_content dl {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.b_popup_content dl dt {
    padding-right: 3px;
}

.b_popup .term_zone .term {
    height: 280px;
    background-color: #fff;
    padding: 32px 0 16px;
    font-size: 18px;
    margin-bottom: 12px;
	border-radius: 20px;
}

.b_popup .term_zone .term .inner {
	height: 100%;
    overflow-y: scroll;
	background-color: #f1f1f1;
	border: 1px solid #c5c5c5;
	padding: 16px;
}

.b_popup .term_zone .term .h5 {
	font-weight: 900;
	margin-bottom: 8px;
}

.b_popup .term_zone .term .h6 {
	margin-bottom: 4px;
}

.b_popup .term_zone .agree {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    gap: 8px;
}

.b_popup .term_zone .agree input + label {
    cursor: pointer;
}

.b_popup .term_zone .agree input {
    appearance: none;
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 50%;
}

.b_popup .term_zone .agree input::after {
    content:'';
    display: none;
    width: 12px;
    height: 12px;
    background-color: #d99b71;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.b_popup .term_zone .agree input:checked::after {
    display: inline-block;
}

.b_popup .btn_box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

/* .b_popup .btn_box button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 230px;
    height: 70px;
    background-color: #fff;
    color: #000;
    font-size: 25px;
	cursor: pointer;
	border-radius: 15px;
	font-family: 'Ria';
	font-weight: 900;
}

.b_popup .btn_box button.confirm_btn {
    background-color: #9f010a;
	color: #fff;
} */

.quick_bar.pc {
	position: fixed;
	margin-left: 836px;
	z-index: 50;
}

.quick_bar.mo {
	display: none;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 0;
	z-index: 50;
}

@media(max-width: 1600px) {
	.quick_bar.pc {
		margin-left: 0;
		right: 16px;
	}
}

@media(max-width: 991px) {
	.quick_bar.pc {
		display: none;
	}
	
	.quick_bar.mo {
		display: block;
	}
	
	.section.section_05 {
		padding-bottom: 180px;
	}

}

@media(max-width: 750px) {

	.section.main {
		height: 133.07vw;
		padding-top: 9.6vw;
	}
	
	.section.main .bg_obj_people {
		display: none;
	}
	.section.main .bg_obj {
		bottom: 4vw;
	}
	
	.section.main .bg_obj {
		background-size: 250vw auto;
	}
	
	.section.main .main_obj {
		min-width: 78.93vw;
		bottom: -4vw;
	}
	
	.section.main .main_obj_pig {
		width: 39.73vw;
		bottom: -9.33vw;
	}
	
	.section.main .bg_obj_melody {
		min-width: 100%;
		width: 200vw;
		bottom: 22.67vw;
	}
	
	.section.main .logo {
		margin-bottom: 6.4vw;
	}
	
	.section.main .logo img {
		width: 40vw;
	}
	
	.section.main .text_wrap .top {
		margin-bottom: 2.67vw;
	}
	
	.section.main .text_wrap .top img {
		width: 60.27vw;
	}
	
	.section.main .text_wrap .md {
		margin-bottom: 4.27vw;
	}
	
	.section.main .text_wrap .md img {
		width: 84.27vw;
	}
	
	.section.main .text_wrap .bt img {
		width: 67.2vw;
	}
	
	.section_02,
	.section_03 {
		padding: 13.33vw 0;
	}
	
	.section_02 img,
	.section_03 .event_info img {
		width: 92vw;
	}
	
	.section_02 .btn_box {
		padding: 0 4vw;
		gap: 2.67vw;
		margin-top: 6.4vw;
	}
	
	.section_03 .event_info {
		margin-bottom: 10.67vw;
	}
	
	.section_03 .game_section .title {
		margin-bottom: 4.27vw;
	}
	
	.section_03 .game_section .title img {
		width: 72.8vw;
	}
	
	.section_04 {
		padding-top: 13.33vw;
	}
	
	.section_04 img {
		width: 94.13vw;
	}
	
	.section.sns {
		padding: 24vw 0 13.33vw;
	}
	
	.section.section_05 {
		padding: 13.33vw 4vw 24vw;
	}
	
	.section.sns img {
		width: 82.4vw;
	}
	
	.section dl {
		font-size: 3.2vw;
	}
	
	.footer {
		padding: 13.33vw 0;
	}
	
	.footer .logo img {
		width: 21.87vw;
	}
	
	.footer .info {
		margin-top: 4vw;
		font-size: 3.2vw;
	}
	
	.b_popup_title {
		margin-bottom: 5.33vw;
		font-size: 4.8vw;
    }
	
	.b_popup_title img {
		width: 39.73vw;
	}
	
	.b_popup_title,
	.b_popup_inner {
		padding: 3.2vw;
	}
    
    .b_popup_content .form_group label {
        width: 30vw;
		min-width: 30vw;
		max-width: 30vw;
        height: 40px;
        font-size: 3.2vw;
    }
    
    .b_popup_content .form_group input {
        width: 58vw;
        padding: 1.6vw;
        height: 40px;
        font-size: 16px;
    }
    
    .b_popup_content .form_group input::placeholder {
        font-size: 3.2vw;
    }
   
    .b_popup_content .pharases {
        padding: 0 1.6vw 1.6vw;
        font-size: 2.4vw;
    }
    
    .b_popup .term_zone .term {
        height: 32vw;
        padding: 3.2vw;
        margin-bottom: 1.6vw;
        font-size: 3.2vw;
		border-radius: 3.2vw;
    }
	
	.b_popup .term_zone .term .h5 {
		margin-bottom: 8px;
	}

	.b_popup .term_zone .term .h6 {
		margin-bottom: 4px;
	}
    
    .b_popup .term_zone .agree {
        display: block;
        font-size: 3.2vw;
        gap: 1.07vw;
        text-align: center;
    }
    
    .b_popup .term_zone .agree > span:first-child {
        display: block;
        margin-bottom: 2vw;
        text-align: center;
    }
    
    .b_popup .term_zone .agree > span:nth-child(2) {
        margin-right: 1.6vw;
    }
    
    .b_popup .term_zone .agree input {
        width: 3.6vw;
        height: 3.6vw;
    }
    
    .b_popup .term_zone .agree input::after {
        width: 2vw;
        height: 2vw;
    }
    
    .b_popup .btn_box {
        gap: 3.33vw;
		margin-top: 5.22vw;
    }
    
    .b_popup .btn_box button {
        width: 42.67vw;
        height: 12vw;
        margin-top: 1.6vw;
        font-size: 4.33vw;
		border-radius: 3.2vw;
    }
}

/* ===== BASE ===== */
#game-container {
position: relative;
width: 750px;
height: 910px;
border-radius: 24px;
overflow: hidden;
box-shadow: 0 18px 48px rgba(0,0,0,0.22);
}
#game-container.game_frame_mo {
height: 1200px;
}
#game-stage {
position: relative;
width: 100%;
height: 100%;
transform-origin: top left;
}
#game-bg {
position: absolute;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
z-index: 0;
}

/* ===== START SCREEN ===== */
.screens {
position: absolute;
width: calc(100% - 36px);
height: calc(100% - 70px);
left: 18px;
top: 52px;
}

#start-screen {
z-index: 10;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: #87DFFF;
}
#start-screen .instructions {
text-align: center;
font-size: 24px;
font-weight: 700;
color: #333;
margin-bottom: 30px;
line-height: 1.6;
}
.timing-box {
background: #f0f8ff;
border-radius: 18px;
padding: 18px 30px;
margin-bottom: 24px;
text-align: center;
}
.timing-label { font-weight: 700; font-size: 22px; color: #333; margin-bottom: 8px; }
.timing-value { font-weight: 900; color: #e53e3e; font-size: 28px; }
.timing-buttons { display: flex; gap: 12px; justify-content: center; margin: 12px 0; }
.timing-btn {
background: #ef1842; color: white; border: none; border-radius: 30px;
padding: 5px 22px; font-weight: 700; font-size: 25px; cursor: pointer;
}
.timing-btn:active { transform: scale(0.95); }
.timing-hint { font-size: 16px; color: #666; margin-top: 6px; }
.key-info { display: flex; gap: 22px; margin-bottom: 34px; }
.key-box {
background: #272e83; color: white; border-radius: 10px;
padding: 16px 30px; text-align: center; font-weight: 700; font-size: 20px;
}
.key-box .key-name { font-size: 28px; margin-bottom: 4px; }
#start-btn { cursor: pointer; transition: transform 0.15s; width: 360px; }
#start-btn:hover { transform: scale(1.05); }
#start-btn:active { transform: scale(0.95); }
.sound-hint { margin-top: 28px; font-size: 22px; font-weight: 700; color: #555; }

/* ===== GAME SCREEN ===== */
#game-screen { z-index: 5; display: none; }
#game-area {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
}
#game-area .top_area {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
}
#game-area .top_area .right {
display: flex;
align-items: center;
gap: 20px;
}
#score-display {
background: #2d3a8c; color: white; font-size: 42px; font-weight: 900;
padding: 10px 26px; border-radius: 14px; z-index: 20; min-width: 120px; text-align: center;
}
#progress-bar-container {
width: 300px; height: 24px;
background: rgba(255,255,255,0.4); border-radius: 12px; z-index: 20; overflow: hidden;
}
#progress-bar { height: 100%; background: #2d3a8c; border-radius: 12px; width: 0%; transition: width 0.1s linear; }
#pause-btn {
width: 52px; height: 52px;
background: #2d3a8c; border: none; border-radius: 12px; color: white;
font-size: 28px; font-weight: 900; cursor: pointer; z-index: 20;
display: flex; align-items: center; justify-content: center;
}

/* Lanes */
.lane { position: absolute; top: 0; bottom: 180px; width: 50%; }
.lane-left { left: 0; }
.lane-right { right: 0; }
.lane-divider {
position: absolute; bottom: 220px; left: 0;
width: 100%; height: 2px; background: rgba(45,58,140,0.15); z-index: 11;
}

/* Hit zone */
#hit-zone {
position: absolute; bottom: 180px; width: 100%; height: 110px;
display: flex; justify-content: space-around; align-items: center; z-index: 15;
}
#game-container.game_frame_mo #hit-zone {
height: 140px;
}
.hit-target {
width: 150px; height: 110px; position: relative;
display: flex; align-items: center; justify-content: center;
}
#game-container.game_frame_mo .hit-target {
width: 200px; height: 140px;
}
.hit-base {
width: 100%; height: auto;
transition: transform 0.08s, filter 0.08s;
}
.hit-burst {
position: absolute; width: 140%; height: 140%; top: -20%; left: -20%;
border-radius: 50%; z-index: 0; pointer-events: none; opacity: 0;
}

/* 일반 히트 이펙트 */
.hit-target.active .hit-base {
transform: scale(1.15);
filter: brightness(1.25);
}

/* ★ 롱노트 홀드 중 - 강한 펄스 */
.hit-target.hold-active .hit-base {
animation: holdPulse 0.25s ease-in-out infinite alternate;
}
@keyframes holdPulse {
0% { transform: scale(1.05); filter: brightness(1.1) drop-shadow(0 0 6px rgba(255,215,0,0.4)); }
100% { transform: scale(1.2); filter: brightness(1.35) drop-shadow(0 0 14px rgba(255,215,0,0.8)); }
}

/* 버스트 이펙트 */
.hit-target.burst-perfect .hit-burst { animation: burstPerfect 0.35s ease-out; }
.hit-target.burst-good .hit-burst { animation: burstGood 0.3s ease-out; }
@keyframes burstPerfect {
0% { opacity: 0.9; transform: scale(0.5); background: radial-gradient(circle, rgba(255,215,0,0.7) 0%, transparent 70%); }
100% { opacity: 0; transform: scale(1.6); background: radial-gradient(circle, rgba(255,215,0,0) 0%, transparent 70%); }
}
@keyframes burstGood {
0% { opacity: 0.7; transform: scale(0.5); background: radial-gradient(circle, rgba(76,175,80,0.6) 0%, transparent 70%); }
100% { opacity: 0; transform: scale(1.4); background: radial-gradient(circle, rgba(76,175,80,0) 0%, transparent 70%); }
}

/* ★ 롱노트 홀드 완료 버스트 */
.hit-target.burst-complete .hit-burst { animation: burstComplete 0.45s ease-out; }
@keyframes burstComplete {
0% { opacity: 1; transform: scale(0.3); background: radial-gradient(circle, rgba(255,255,100,0.9) 0%, rgba(255,180,0,0.5) 50%, transparent 70%); }
100% { opacity: 0; transform: scale(2); background: radial-gradient(circle, rgba(255,255,100,0) 0%, rgba(255,180,0,0) 50%, transparent 70%); }
}

/* ===== Notes ===== */
.note {
position: absolute; width: 104px; height: 104px; z-index: 20;
}
#game-container.game_frame_mo .note {
width: 140px; height: 140px;
}
.note img {
width: 100%; height: 100%; object-fit: contain;
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* ===== 롱노트 트레일 ===== */
.long-trail {
position: absolute; z-index: 20; pointer-events: none;
overflow: visible;
}
.long-trail .trail-cap {
position: absolute; left: 50%; width: 104px; height: 104px;
transform: translateX(-50%);
object-fit: contain;
filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
z-index: 20;
}
#game-container.game_frame_mo .long-trail .trail-cap {
width: 140px; height: 140px;
}
.long-trail .trail-cap-top { top: 0; }
.long-trail .trail-cap-bottom { bottom: 0; }
.long-trail .trail-cap-bottom.hidden { display: none; }
.long-trail .trail-bar {
position: absolute; left: 50%; transform: translateX(-50%);
width: 52px; top: 52px; bottom: 52px;
border-radius: 26px;
z-index: 18;
}
#game-container.game_frame_mo .long-trail .trail-bar {
width: 70px; top: 70px; bottom: 70px;
}
.long-trail.lane-0 .trail-bar {
background: linear-gradient(to bottom, rgba(255,200,50,0.3), rgba(255,200,50,0.55));
border: 2.5px solid rgba(200,170,30,0.4);
}
.long-trail.lane-1 .trail-bar {
background: linear-gradient(to bottom, rgba(80,180,255,0.3), rgba(80,180,255,0.55));
border: 2.5px solid rgba(40,120,200,0.4);
}

/* 홀드 중 - 바 강조 */
.long-trail.holding .trail-bar {
animation: trailGlow 0.3s ease-in-out infinite alternate;
}
.long-trail.lane-0.holding .trail-bar {
background: linear-gradient(to bottom, rgba(255,220,60,0.6), rgba(255,200,50,0.9));
border-color: rgba(255,180,0,0.7);
box-shadow: 0 0 10px rgba(255,200,50,0.4);
}
.long-trail.lane-1.holding .trail-bar {
background: linear-gradient(to bottom, rgba(100,200,255,0.6), rgba(60,160,255,0.9));
border-color: rgba(40,140,255,0.7);
box-shadow: 0 0 10px rgba(80,180,255,0.4);
}
/* 홀드 중 - 탑캡 반짝 */
.long-trail.holding .trail-cap-top {
animation: capPulse 0.4s ease-in-out infinite alternate;
}
@keyframes trailGlow {
0% { filter: brightness(1); }
100% { filter: brightness(1.4); }
}
@keyframes capPulse {
0% { transform: translateX(-50%) scale(1); filter: brightness(1); }
100% { transform: translateX(-50%) scale(1.15); filter: brightness(1.3); }
}

/* ★ 홀드 히트 / 표정 변경 시 팝 효과 (일반노트처럼 커졌다 돌아오기) */
@keyframes capPop {
0%   { transform: translateX(-50%) scale(1);    filter: brightness(1); }
35%  { transform: translateX(-50%) scale(1.6);  filter: brightness(1.45) drop-shadow(0 0 10px rgba(255,220,80,0.75)); }
70%  { transform: translateX(-50%) scale(0.92); filter: brightness(1.1); }
100% { transform: translateX(-50%) scale(1);    filter: brightness(1); }
}
.long-trail .trail-cap-top.cap-pop {
animation: capPop 0.38s cubic-bezier(0.22, 0.61, 0.36, 1) forwards !important;
}

/* Buttons area */
#buttons-area {
position: absolute; bottom: 28px; width: 100%;
display: flex; justify-content: space-around; padding: 0 44px; z-index: 20;
}
.game-btn {
cursor: pointer; width: 220px; height: 80px;
background-size: contain; background-repeat: no-repeat; background-position: center;
background-color: transparent; border: none; padding: 0;
-webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
transition: transform 0.1s;
}
.game-btn:active, .game-btn.pressed { transform: scale(0.92); }
#game-container.game_frame_mo .game-btn { width: 280px; height: 110px; }

/* Judgment text */
.judgment-text {
position: absolute; width: 100%; text-align: center; top: 45%;
font-size: 54px; font-weight: 900; z-index: 25; pointer-events: none;
opacity: 0; transform: translateY(0) scale(1.3);
animation: judgmentAnim 0.5s ease-out forwards;
-webkit-text-stroke: 2.5px rgba(0,0,0,0.2);
}
@keyframes judgmentAnim {
0% { opacity: 1; transform: translateY(0) scale(1.3); }
50% { opacity: 1; transform: translateY(-20px) scale(1); }
100% { opacity: 0; transform: translateY(-40px) scale(0.9); }
}
.judgment-perfect { color: #FFD700; text-shadow: 0 0 10px rgba(255,215,0,0.5), 2px 2px 0 #b8860b; }
.judgment-good { color: #4CAF50; text-shadow: 0 0 8px rgba(76,175,80,0.4), 2px 2px 0 #2e7d32; }
.judgment-bad { color: #FF9800; text-shadow: 2px 2px 0 #e65100; }
.judgment-miss { color: #f44336; text-shadow: 2px 2px 0 #b71c1c; }

/* Long note hold points */
.hold-point-text {
position: absolute; width: 100%; text-align: center;
font-size: 30px; font-weight: 900; z-index: 25; pointer-events: none;
color: #FFD700; text-shadow: 1px 1px 0 #b8860b, 0 0 8px rgba(255,215,0,0.5);
animation: holdPointAnim 0.4s ease-out forwards;
}
@keyframes holdPointAnim {
0% { opacity: 1; transform: translateY(0) scale(1.1); }
100% { opacity: 0; transform: translateY(-30px) scale(0.8); }
}

/* ===== 히트 스파크 파티클 ===== */
.spark {
position: absolute;
border-radius: 50%;
pointer-events: none;
z-index: 30;
animation: sparkFly var(--dur, 0.5s) ease-out forwards;
}
@keyframes sparkFly {
0%   { opacity: 1; transform: translate(0, 0) scale(1); }
100% { opacity: 0; transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(0.1); }
}
/* 일반 노트 히트 - 스케일업 후 페이드 */
.note.hit-anim {
transition: transform 0.18s ease-out, opacity 0.18s ease-out !important;
z-index: 28 !important;
}

/* Combo display */
#combo-display {
padding-top: 35%; text-align: center;
font-size: 32px; font-weight: 900; color: #fff;
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
z-index: 24; pointer-events: none; opacity: 0; transition: opacity 0.2s;
}
#combo-display.show { opacity: 1; }

/* Lane flash */
.lane-flash {
position: absolute; bottom: 180px; width: 50%; height: 140px;
opacity: 0; z-index: 14; pointer-events: none;
}
.lane-flash-left { left: 0; background: radial-gradient(ellipse at center bottom, rgba(255,215,0,0.4) 0%, transparent 70%); }
.lane-flash-right { right: 0; background: radial-gradient(ellipse at center bottom, rgba(0,150,255,0.4) 0%, transparent 70%); }
.lane-flash.active { animation: flashAnim 0.2s ease-out; }
@keyframes flashAnim { 0% { opacity: 1; } 100% { opacity: 0; } }

/* ★ 롱노트 홀드 중 레인 지속 글로우 */
.lane-glow {
position: absolute; bottom: 180px; height: 200px; width: 50%;
pointer-events: none; z-index: 13; opacity: 0;
transition: opacity 0.15s;
}
.lane-glow.active { opacity: 1; }
.lane-glow-left {
left: 0;
background: radial-gradient(ellipse at 50% 100%, rgba(255,215,0,0.25) 0%, transparent 70%);
}
.lane-glow-right {
right: 0;
background: radial-gradient(ellipse at 50% 100%, rgba(80,180,255,0.25) 0%, transparent 70%);
}

/* ===== PAUSE SCREEN ===== */
#pause-screen {
z-index: 30;
display: none; flex-direction: column; align-items: center; justify-content: center;
background: #87DFFF;
}
.pause-title {
font-size: 58px; font-weight: 900; color: #2d3a8c; margin-bottom: 40px;
display: flex; align-items: center; gap: 18px;
}
.pause-icon {
background: #2d3a8c; color: white; width: 60px; height: 60px;
border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.pause-buttons { display: flex; gap: 28px; }
.pause-action-btn {
padding: 18px 48px; font-size: 30px; font-weight: 900; border: none;
border-radius: 16px; cursor: pointer; position: relative; overflow: hidden;
}
.pause-action-btn::after {
content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 8px;
border-radius: 0 0 16px 16px;
}
#continue-btn { background: #2d3a8c; color: white; }
#continue-btn::after { background: #1a2670; }
#exit-btn { background: #333; color: white; }
#exit-btn::after { background: #111; }

/* ===== RESULT SCREEN ===== */
#result-screen {
z-index: 30;
display: none; flex-direction: column; align-items: center; justify-content: center;
background: #87DFFF; padding: 30px;
}
#result-pig { width: 360px; max-width: 80%; margin-bottom: 54px; }
#result-score {
font-size: 52px; font-weight: 900; color: white;
padding: 8px 42px; border-radius: 12px;
margin-top: -158px; margin-bottom: 18px;
}
#result-grade {
font-size: 146px; font-weight: 900; line-height: 1; margin-bottom: 10px;
color: #e53e3e;
-webkit-text-stroke: 5px white;
paint-order: stroke fill;
text-shadow: 4px 4px 0 #222, -1px -1px 0 #222, 1px -1px 0 #222, -1px 1px 0 #222, 1px 1px 0 #222, 3px 3px 0 #333;
filter: drop-shadow(2px 4px 2px rgba(0,0,0,0.3));
}
#result-combo { font-size: 28px; font-weight: 700; color: #333; margin-bottom: 28px; }
.result-stats { display: flex; gap: 16px; margin-bottom: 34px; }
.stat-box { background: #2d3a8c; border-radius: 14px; padding: 12px 22px; text-align: center; min-width: 102px; }
.stat-label { font-size: 16px; font-weight: 700; color: rgba(255,255,255,0.8); margin-bottom: 4px; }
.stat-value { font-size: 42px; font-weight: 900; }
.stat-perfect .stat-value { color: #FFD700; }
.stat-good .stat-value { color: #4CAF50; }
.stat-bad .stat-value { color: #FF9800; }
.stat-miss .stat-value { color: #f44336; }
#apply-btn { cursor: pointer; width: 334px; transition: transform 0.15s; }
#apply-btn:hover { transform: scale(1.05); }
#apply-btn:active { transform: scale(0.95); }

/* ===== MOBILE RESPONSIVE ===== */
#game-stage {

}
#game-scale-wrapper {
overflow: hidden;
position: relative;
margin: 0 auto;
}
