@charset "UTF-8";
/*
 *  File Name   : /hub/assets/css/common/layerpopup.css
 *  Description : 공통 레이어팝업
 */

.layerpopup {position: fixed; z-index: 200; left: 0; top: 0; display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%; padding: 40px 20px;
	background: rgba(0, 0, 0, .6); opacity: 0;
	transition: opacity 200ms var(--ease-out);}
.layerpopup[hidden] {display: none;}
.layerpopup.is-open {opacity: 1;}

/* 옆 여백은 변수로 — 바닥 버튼줄이 그만큼 밖으로 나가야 그라데이션이 끝까지 닿음 */
.layerpopup__panel {--layerpopup-pad-x: 30px;
	--layerpopup-fade: linear-gradient(180deg, rgba(250,250,250,0) 0%, rgba(250,250,250,.92) 40%, #fafafa 100%);
	position: relative; overflow: auto; width: 500px; max-width: 100%; max-height: calc(100vh - 80px);
	padding: 40px var(--layerpopup-pad-x); border-radius: 20px; background: #fafafa;
	box-shadow: 0 2px 3px rgba(28,31,38,.16), 0 6px 10px 4px rgba(28,31,38,.12);
	text-align: center;
	transform: translateY(12px);
	transition: transform 240ms var(--ease-out);}
.layerpopup.is-open .layerpopup__panel {transform: translateY(0);}
.layerpopup__panel:focus {outline: none;}

.layerpopup__ico {display: block; width: 96px; height: 96px; margin: 0 auto; background-repeat: no-repeat; background-position: 50% 50%; background-size: contain;}
.layerpopup__title {margin-top: 24px; color: #1b1b1b; font-weight: 700; font-size: 34px; line-height: 1.2;}
.layerpopup__text {margin-top: 16px; color: #1b1b1b; font-weight: 400; font-size: 24px; line-height: 1.2;}
.layerpopup__extra {margin-top: 24px;}
.layerpopup__panel > :first-child {margin-top: 0;}

.layerpopup__actions {display: flex; justify-content: center; gap: 20px; margin-top: 40px;}
.layerpopup__btn {flex: 0 1 auto; min-width: 210px; height: 60px; padding: 0 24px; border: 0; border-radius: 6px;
	font: inherit; font-weight: 500; font-size: 22px; white-space: nowrap; cursor: pointer;}
.layerpopup__btn--primary {background: #1281ff; color: #fafafa;}
.layerpopup__btn--secondary {background: #d0e6ff; color: #0062d2;}

/*
 * 오른쪽 위 닫기 — 쓰는 쪽은 마크업만 맞추면 됨
 * 판에 layerpopup__panel--closable 을 같이 걸 것. 윗여백이 버튼 자리만큼 넓어짐
 * 버튼은 판의 맨 끝에 둘 것 — 맨 앞에 두면 layerpopup__panel > :first-child 가 아이콘에서 버튼으로 옮겨감
 */
.layerpopup__close {position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border: 0; cursor: pointer;
	background: url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 14L30 30M30 14L14 30' stroke='%231B1B1B' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 50% 50%/44px 44px;}
.layerpopup__panel--closable {padding-top: 56px;}

/* ===== 아이콘 ===== */
.layerpopup__ico--vote {background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' overflow='visible' style='display: block;' width='68' height='77.281' viewBox='0 0 68 77.281' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cg id='Group'%3E %3Cpath id='Vector' fill-rule='evenodd' clip-rule='evenodd' d='M0 33.7634V72.4239C0 73.712 0.511733 74.9475 1.42262 75.8584C2.33351 76.7693 3.56895 77.281 4.85714 77.281H63.1429C64.4311 77.281 65.6665 76.7693 66.5774 75.8584C67.4883 74.9475 68 73.712 68 72.4239V33.7634C68 34.4641 67.8483 35.1565 67.5555 35.793C67.2627 36.4296 66.8357 36.9953 66.3036 37.4512L40.3216 59.7212C38.561 61.2301 36.3187 62.0595 34 62.0595C31.6813 62.0595 29.439 61.2301 27.6784 59.7212L1.69636 37.4512C1.16434 36.9953 0.737275 36.4296 0.444464 35.793C0.151652 35.1565 2.94732e-05 34.4641 0 33.7634Z' fill='%2356CCF2'/%3E %3Cpath id='Vector_2' fill-rule='evenodd' clip-rule='evenodd' d='M68 30.9195V28.2966C68 27.5959 67.8483 26.9036 67.5555 26.267C67.2627 25.6305 66.8357 25.0648 66.3036 24.6088L59.5 18.7766V43.0623L66.3036 37.2313C66.8358 36.7752 67.263 36.2094 67.5558 35.5726C67.8486 34.9358 68.0001 34.2432 68 33.5423V30.9195ZM8.5 43.0623L1.69636 37.2313C1.16419 36.7752 0.737027 36.2094 0.44421 35.5726C0.151393 34.9358 -0.00014562 34.2432 1.05001e-07 33.5423V28.2966C2.95782e-05 27.5959 0.151652 26.9036 0.444464 26.267C0.737275 25.6305 1.16434 25.0648 1.69636 24.6088L8.5 18.7766V43.0623ZM19.8329 9.06233H48.1671L40.3228 2.33883C38.5621 0.82959 36.3196 0 34.0006 0C31.6816 0 29.4391 0.82959 27.6784 2.33883L19.8329 9.06233Z' fill='%232F80ED'/%3E %3Cpath id='Vector_3' fill-rule='evenodd' clip-rule='evenodd' d='M59.5024 43.2837V15.1341C59.5024 13.5239 58.8627 11.9796 57.7241 10.841C56.5855 9.70234 55.0412 9.06267 53.4309 9.06267H14.5738C12.9636 9.06267 11.4193 9.70234 10.2807 10.841C9.14204 11.9796 8.50237 13.5239 8.50237 15.1341V43.2837L27.6808 59.7215C29.4414 61.2304 31.6836 62.0598 34.0024 62.0598C36.3211 62.0598 38.5633 61.2304 40.3239 59.7215L59.5024 43.2837Z' fill='%23FAFAFA'/%3E %3Cg id='Check circle'%3E %3Cpath id='Icon' d='M46.2103 37.3663V38.4524C46.2089 40.9982 45.3845 43.4753 43.8602 45.5143C42.3359 47.5533 40.1934 49.0449 37.7521 49.7667C35.3107 50.4885 32.7015 50.4018 30.3135 49.5196C27.9255 48.6373 25.8866 47.0068 24.501 44.8711C23.1154 42.7355 22.4573 40.2091 22.6248 37.6689C22.7923 35.1286 23.7765 32.7105 25.4305 30.7753C27.0845 28.8401 29.3198 27.4914 31.803 26.9303C34.2862 26.3693 36.8842 26.626 39.2096 27.6621M46.2103 29.0079L34.4048 40.8253L30.8631 37.2836' stroke='%231281FF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E %3C/g%3E %3C/g%3E %3C/svg%3E"); background-size: 68px 77px;}
.layerpopup__ico--gift {background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' overflow='visible' style='display: block;' width='72' height='80' viewBox='0 0 72 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cg id='Group'%3E %3Cpath id='Vector' d='M68 42V67C68.0002 70.3206 66.7298 73.5153 64.4493 75.9289C62.1688 78.3425 59.0512 79.792 55.736 79.98L55 80H17C13.6794 80.0002 10.4847 78.7298 8.07108 76.4493C5.65747 74.1688 4.20799 71.0512 4.02 67.736L4 67V42H68Z' fill='%236014EA'/%3E %3Cpath id='Vector_2' d='M67 20C69.76 20 72 22.24 72 25V39C72.0002 40.1527 71.6022 41.27 70.8733 42.1629C70.1444 43.0558 69.1294 43.6695 68 43.9H4C1.72 43.436 0 41.42 0 39V25C0 22.24 2.24 20 5 20H67Z' fill='%237A33FF'/%3E %3Cpath id='Vector_3' d='M33 80V40H39V80H33Z' fill='url(%23paint0_linear_708_21275)'/%3E %3Cpath id='Vector_4' d='M33 44V24H39V44H33Z' fill='url(%23paint1_linear_708_21275)'/%3E %3Cpath id='Vector_5' fill-rule='evenodd' clip-rule='evenodd' d='M26 26C23.8115 25.9998 21.6585 25.4471 19.7405 24.3932C17.8225 23.3392 16.2017 21.8182 15.0282 19.9709C13.8546 18.1237 13.1665 16.0101 13.0274 13.826C12.8884 11.642 13.3029 9.45814 14.2327 7.47699C15.1625 5.49583 16.5773 3.78147 18.3462 2.49279C20.115 1.20412 22.1805 0.382854 24.3513 0.105117C26.5221 -0.172621 28.7279 0.102161 30.7642 0.903992C32.8005 1.70582 34.6014 3.00875 36 4.692C37.3986 3.00875 39.1995 1.70582 41.2358 0.903992C43.2721 0.102161 45.4779 -0.172621 47.6487 0.105117C49.8195 0.382854 51.885 1.20412 53.6538 2.49279C55.4227 3.78147 56.8375 5.49583 57.7673 7.47699C58.6971 9.45814 59.1116 11.642 58.9726 13.826C58.8335 16.0101 58.1454 18.1237 56.9718 19.9709C55.7983 21.8182 54.1775 23.3392 52.2595 24.3932C50.3415 25.4471 48.1885 25.9998 46 26H26ZM19 13C19 11.1435 19.7375 9.36301 21.0503 8.05026C22.363 6.7375 24.1435 6 26 6C27.8565 6 29.637 6.7375 30.9497 8.05026C32.2625 9.36301 33 11.1435 33 13V20H26C24.1435 20 22.363 19.2625 21.0503 17.9498C19.7375 16.637 19 14.8565 19 13ZM39 20H46C47.3845 20 48.7378 19.5895 49.889 18.8203C51.0401 18.0511 51.9373 16.9579 52.4672 15.6788C52.997 14.3997 53.1356 12.9922 52.8655 11.6344C52.5954 10.2765 51.9287 9.02922 50.9497 8.05026C49.9708 7.07129 48.7235 6.4046 47.3656 6.13451C46.0078 5.86441 44.6003 6.00303 43.3212 6.53285C42.0421 7.06266 40.9489 7.95987 40.1797 9.11101C39.4105 10.2622 39 11.6155 39 13V20Z' fill='black'/%3E %3Cpath id='Vector_6' fill-rule='evenodd' clip-rule='evenodd' d='M26 26C23.8115 25.9998 21.6585 25.4471 19.7405 24.3932C17.8225 23.3392 16.2017 21.8182 15.0282 19.9709C13.8546 18.1237 13.1665 16.0101 13.0274 13.826C12.8884 11.642 13.3029 9.45814 14.2327 7.47699C15.1625 5.49583 16.5773 3.78147 18.3462 2.49279C20.115 1.20412 22.1805 0.382854 24.3513 0.105117C26.5221 -0.172621 28.7279 0.102161 30.7642 0.903992C32.8005 1.70582 34.6014 3.00875 36 4.692C37.3986 3.00875 39.1995 1.70582 41.2358 0.903992C43.2721 0.102161 45.4779 -0.172621 47.6487 0.105117C49.8195 0.382854 51.885 1.20412 53.6538 2.49279C55.4227 3.78147 56.8375 5.49583 57.7673 7.47699C58.6971 9.45814 59.1116 11.642 58.9726 13.826C58.8335 16.0101 58.1454 18.1237 56.9718 19.9709C55.7983 21.8182 54.1775 23.3392 52.2595 24.3932C50.3415 25.4471 48.1885 25.9998 46 26H26ZM19 13C19 11.1435 19.7375 9.36301 21.0503 8.05026C22.363 6.7375 24.1435 6 26 6C27.8565 6 29.637 6.7375 30.9497 8.05026C32.2625 9.36301 33 11.1435 33 13V20H26C24.1435 20 22.363 19.2625 21.0503 17.9498C19.7375 16.637 19 14.8565 19 13ZM39 20H46C47.3845 20 48.7378 19.5895 49.889 18.8203C51.0401 18.0511 51.9373 16.9579 52.4672 15.6788C52.997 14.3997 53.1356 12.9922 52.8655 11.6344C52.5954 10.2765 51.9287 9.02922 50.9497 8.05026C49.9708 7.07129 48.7235 6.4046 47.3656 6.13451C46.0078 5.86441 44.6003 6.00303 43.3212 6.53285C42.0421 7.06266 40.9489 7.95987 40.1797 9.11101C39.4105 10.2622 39 11.6155 39 13V20Z' fill='%23FFA600'/%3E %3C/g%3E %3Cdefs%3E %3ClinearGradient id='paint0_linear_708_21275' x1='33' y1='17.5' x2='33' y2='73.044' gradientUnits='userSpaceOnUse'%3E %3Cstop stop-color='%23FB5937'/%3E %3Cstop offset='1' stop-color='%23FFCD0F'/%3E %3C/linearGradient%3E %3ClinearGradient id='paint1_linear_708_21275' x1='33' y1='-61.716' x2='33' y2='78.284' gradientUnits='userSpaceOnUse'%3E %3Cstop stop-color='%23FB5937'/%3E %3Cstop offset='1' stop-color='%23FFCD0F'/%3E %3C/linearGradient%3E %3C/defs%3E %3C/svg%3E"); background-size: 72px 80px;}
.layerpopup__ico--warn {background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' overflow='visible' style='display: block;' width='83.9911' height='77.9955' viewBox='0 0 83.9911 77.9955' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cg id='Group'%3E %3Cpath id='Vector' d='M32.8052 5.4225C36.7952 -1.8075 47.1932 -1.8075 51.1862 5.4225L82.6682 62.4195C86.5322 69.4185 81.4682 77.9955 73.4762 77.9955H10.5152C2.52022 77.9955 -2.54078 69.4155 1.32322 62.4195L32.8052 5.4225Z' fill='%23FFCD0F'/%3E %3Cpath id='Vector_2' d='M45.7442 59.9955C45.7442 60.9901 45.3491 61.9439 44.6459 62.6472C43.9426 63.3504 42.9888 63.7455 41.9942 63.7455C40.9997 63.7455 40.0458 63.3504 39.3426 62.6472C38.6393 61.9439 38.2442 60.9901 38.2442 59.9955C38.2442 59.0009 38.6393 58.0471 39.3426 57.3438C40.0458 56.6406 40.9997 56.2455 41.9942 56.2455C42.9888 56.2455 43.9426 56.6406 44.6459 57.3438C45.3491 58.0471 45.7442 59.0009 45.7442 59.9955ZM41.9942 20.9955C41.1986 20.9955 40.4355 21.3116 39.8729 21.8742C39.3103 22.4368 38.9942 23.1999 38.9942 23.9955V47.9955C38.9942 48.7912 39.3103 49.5542 39.8729 50.1168C40.4355 50.6794 41.1986 50.9955 41.9942 50.9955C42.7899 50.9955 43.5529 50.6794 44.1155 50.1168C44.6782 49.5542 44.9942 48.7912 44.9942 47.9955V23.9955C44.9942 23.1999 44.6782 22.4368 44.1155 21.8742C43.5529 21.3116 42.7899 20.9955 41.9942 20.9955Z' fill='%231B1B1B'/%3E %3C/g%3E %3C/svg%3E"); background-size: 84px 78px;}
.layerpopup__ico--check {background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' overflow='visible' style='display: block;' width='84' height='84' viewBox='0 0 84 84' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cg id='icon-glyph'%3E %3Cpath id='Vector' d='M84 42C84 65.196 65.196 84 42 84C18.804 84 0 65.196 0 42C0 18.804 18.804 0 42 0C65.196 0 84 18.804 84 42Z' fill='%2300BC29'/%3E %3Cpath id='Vector_2' d='M62.121 32.1212C62.6675 31.5554 62.9699 30.7976 62.963 30.011C62.9562 29.2245 62.6407 28.472 62.0845 27.9158C61.5282 27.3596 60.7758 27.0441 59.9892 27.0372C59.2026 27.0304 58.4448 27.3328 57.879 27.8792L37.5 48.2582L27.621 38.3792C27.0552 37.8328 26.2974 37.5304 25.5108 37.5372C24.7242 37.5441 23.9718 37.8596 23.4155 38.4158C22.8593 38.972 22.5438 39.7245 22.537 40.511C22.5301 41.2976 22.8325 42.0554 23.379 42.6212L35.379 54.6212C35.9416 55.1837 36.7045 55.4996 37.5 55.4996C38.2955 55.4996 39.0584 55.1837 39.621 54.6212L62.121 32.1212Z' fill='url(%23g)'/%3E %3C/g%3E %3Cdefs%3E %3ClinearGradient id='g' x1='30.093' y1='29.9072' x2='36.486' y2='61.9802' gradientUnits='userSpaceOnUse'%3E %3Cstop stop-color='white'/%3E %3Cstop offset='1' stop-color='%23E3FFD9'/%3E %3C/linearGradient%3E %3C/defs%3E %3C/svg%3E"); background-size: 84px 84px;}

/* ===== 변형 ===== */

.layerpopup__ico--bookmark {background-image: url("data:image/svg+xml,%3Csvg width='84' height='84' viewBox='0 0 84 84' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M84 42C84 65.196 65.196 84 42 84C18.804 84 0 65.196 0 42C0 18.804 18.804 0 42 0C65.196 0 84 18.804 84 42Z' fill='url(%23b)'/%3E%3Cpath d='M54.1 22H30.9C30.1309 22 29.3932 22.3085 28.8494 22.8578C28.3055 23.407 28 24.1519 28 24.9286V63L42.5 53.4696L57 63V24.9286C57 24.1519 56.6945 23.407 56.1506 22.8578C55.6068 22.3085 54.8691 22 54.1 22Z' fill='white'/%3E%3Cdefs%3E%3ClinearGradient id='b' x1='42' y1='0' x2='42' y2='84' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%235F1AFF'/%3E%3Cstop offset='1' stop-color='%234507FF'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E"); background-size: 84px 84px;}

.layerpopup__steps {display: flex; flex-direction: column; gap: 16px; padding: 20px;
	border-radius: 12px; background: #f3f6fa; list-style: none; text-align: left;}
.layerpopup__step {display: flex; align-items: center; gap: 12px;}
.layerpopup__step-no {flex: none; display: flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 50%; background: #1281ff;
	color: #fafafa; font-weight: 700; font-size: 18px;}
.layerpopup__step-txt {display: flex; align-items: center; gap: 8px; min-width: 0;
	color: #1b1b1b; font-size: 24px; line-height: 1.2;}
.layerpopup__step-txt b {font-weight: 700;}
.layerpopup__kbd {padding: 2px 10px; border: 1px solid #cfd4db; border-radius: 6px; background: #fafafa;
	color: #1b1b1b; font: inherit; font-weight: 500; font-size: 22px; line-height: 1.23;}
.layerpopup__step-note {color: #5f5e5a; font-size: 20px; line-height: 1.2;}

.layerpopup__image-link {display: block;}

.layerpopup--banner .layerpopup__panel {width: 500px; padding: 0 0 24px;}
.layerpopup--banner .layerpopup__actions {margin-top: 16px;}
.layerpopup__image {display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;}

.layerpopup__check {display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px;
	color: #585862; font-weight: 500; font-size: 16px; line-height: 1.25; cursor: pointer;}
.layerpopup__check input {appearance: none; flex: none; width: 20px; height: 20px; margin: 0;
	border: 2px solid #585862; border-radius: 2px; background: none; cursor: pointer;}
.layerpopup__check input:checked {border-color: #1281ff;
	background: #1281ff url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' overflow='visible' style='display: block;' width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath d='M1 4.4L4.3 7.7L11 1' stroke='%23FAFAFA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E %3C/svg%3E") no-repeat 50% 50% / 12px 9px;}

@media all and (max-width: 860px) and (prefers-reduced-motion: reduce) {
	.layerpopup-toast {opacity: 0; transform: none; transition: opacity 180ms var(--ease-out), visibility 0s 180ms;}
	.layerpopup-toast.is-open,
	.is-open > .layerpopup-toast {opacity: 1; transform: none;}
}

.is-layer-open, .is-layer-open body {overflow: hidden;}
.is-layer-open .header {position: fixed; left: 0; right: 0; top: 0;}
.is-layer-open body {padding-top: var(--lock-head, 0px);}

/* layerpopup__handle */
.layerpopup__handle,
.layerpopup-toast__handle {display: none;}

.layerpopup__title-mo {display: none;}

.layerpopup__tabs {display: none;}

.layerpopup__steps--ios,
.layerpopup__steps--android {display: none;}

@media all and (max-width: 860px) {
	.layerpopup {padding: 30px;}
	.layerpopup__panel {--layerpopup-pad-x: 16px;
		width: 100%; max-height: calc(100vh - 60px); padding: 24px var(--layerpopup-pad-x); border-radius: 15px;}
	.layerpopup__close {right: 8px; top: 8px; width: 48px; height: 48px;}
	.layerpopup__panel--closable {padding-top: 40px;}
	.layerpopup__ico {width: 52px; height: 52px;}
	.layerpopup__ico--vote {background-size: 37px 42px;}
	.layerpopup__ico--gift {background-size: 39px 43px;}
	.layerpopup__ico--warn {background-size: 45px 42px;}
	.layerpopup__ico--check {background-size: 46px 46px;}
	.layerpopup__ico--bookmark {background-size: 46px 46px;}
	.layerpopup__title {margin-top: 16px; font-size: 22px;}
	.layerpopup__text {margin-top: 8px; font-size: 17px; line-height: 1.24;}
	/*
	 * 모바일은 줄바꿈을 안 씀 — 시안이 「Oops! Something went wrong.」 로 이어 흐름
	 * 마크업에서 <br> 앞에 공백을 둘 것. 안 두면 여기서 숨길 때 앞뒤 글자가 붙음
	 */
	.layerpopup__title br, .layerpopup__text br {display: none;}
	.layerpopup__extra {margin-top: 16px;}
	.layerpopup__actions {gap: 12px; margin-top: 24px;}
	.layerpopup__btn {flex: 1 1 0; min-width: 0; height: 48px; padding: 0 12px; border-radius: 6px; font-size: 17px;}

	/* ===== 배너 ===== */
	.layerpopup--banner {padding: 30px 47px;}
	.layerpopup--banner .layerpopup__panel {padding: 0 0 8px;}
	.layerpopup--banner .layerpopup__actions {margin-top: 9px; padding: 0 17px;}
	.layerpopup__check {gap: 7px; min-height: 44px; margin-top: -2px; padding: 12px 0; font-size: 12px;}
	.layerpopup__check input {width: 19px; height: 19px;}

		.layerpopup-toast {position: fixed; z-index: var(--layer-toast-z, 110); left: 0; right: 0; top: auto; bottom: 0;
		width: auto; max-width: none; max-height: var(--layer-toast-max, calc(100vh - 60px));
		padding-bottom: calc(24px + env(safe-area-inset-bottom));
		border-radius: 20px 20px 0 0; background: #fafafa;
		box-shadow: 0 -2px 8px rgba(0,0,0,.16);
		opacity: 1; visibility: hidden; transform: translateY(100%);
		transition: transform 300ms var(--ease-out), visibility 0s 300ms;}
	.layerpopup-toast.is-open,
	.is-open > .layerpopup-toast {visibility: visible; transform: none;
		transition: transform 300ms var(--ease-out);}
	.layerpopup-toast__handle {flex: none; display: block; position: relative;
		width: 40px; height: 4px; margin: 8px auto 0;
		border-radius: 2px; background: #d9dbe0; touch-action: none; cursor: grab;}
	.layerpopup-toast__handle::after {content: ''; position: absolute;
		left: -40px; right: -40px; top: -12px; bottom: -16px;}
	.layerpopup-toast.is-dragging {transition: none;}

		.layerpopup .layerpopup-toast {padding-top: 8px; padding-left: 16px; padding-right: 16px;
		text-align: left;}
	.layerpopup-toast .layerpopup__ico,
	.layerpopup-toast .layerpopup__text,
	.layerpopup-toast .layerpopup__steps--pc {display: none;}
	.layerpopup-toast .layerpopup__title {margin-top: 16px;}
	.layerpopup__title-pc {display: none;}
	.layerpopup__title-mo {display: inline;}

	.layerpopup__tabs {display: flex; margin-top: 16px; padding: 4px;
		border-radius: 8px; background: #eef0f3;}
	.layerpopup__tab {flex: 1 1 0; min-width: 0; height: 32px; border: 0; border-radius: 6px;
		background: none; color: #5b6069; font: inherit; font-weight: 500; font-size: 16px;
		white-space: nowrap; cursor: pointer;}
	.layerpopup__tab.is-on {background: #fafafa; color: #1b1b1b;}

	.layerpopup-toast .layerpopup__steps {margin-top: 16px; padding: 16px;}
	.layerpopup__steps--ios {display: flex;}
	.layerpopup.is-android .layerpopup__steps--ios {display: none;}
	.layerpopup.is-android .layerpopup__steps--android {display: flex;}

	.layerpopup-toast .layerpopup__step {align-items: flex-start; gap: 12px;}
	.layerpopup-toast .layerpopup__step-no {width: 28px; height: 28px; font-size: 16px;}
	.layerpopup-toast .layerpopup__step-txt {display: block; font-size: 17px; line-height: 1.24;}
	/* layerpopup__step-tip */
	.layerpopup__step-tip {color: #5f5e5a; font-size: 14px; line-height: 1.21;}
	.layerpopup-toast .layerpopup__actions {margin-top: 16px;}
}

/* ===== 전체화면 ===== */
/* layerpopup-full */
.layerpopup-full {position: fixed; z-index: var(--layer-full-z, 210); left: 0; top: 0;
	overflow: hidden; width: 100%; height: 100vh; max-height: none;
	padding: 0; border-radius: 0; background: #0b0a1f;
	text-align: left;
	transform: scale(.96);
	transition: transform 320ms var(--ease-out);}
.layerpopup.is-open .layerpopup-full {transform: scale(1);}

.layerpopup-full__body {position: relative; width: 100%; height: 100%;}

/* layerpopup-full__close */
.layerpopup-full__close {position: absolute; z-index: 10; right: 50px; top: 50px;
	width: 70px; height: 70px; border-radius: 50%; background: #0866ff; cursor: pointer;}
.layerpopup-full__close::before,
.layerpopup-full__close::after {content: ''; position: absolute; left: 50%; top: 50%;
	width: 38px; height: 4px; margin: -2px 0 0 -19px; border-radius: 2px; background: #fff;}
.layerpopup-full__close::before {transform: rotate(45deg);}
.layerpopup-full__close::after {transform: rotate(-45deg);}

/* is-layer-full */
.is-layer-full {overflow: hidden;}

@media all and (max-width: 860px) {
	.layerpopup-full {height: 100dvh;}
	/* layerpopup-full__close */
	.layerpopup-full__close {right: auto; left: 20px; top: 20px; width: 40px; height: 40px;
		background: #0866ff;}
	.layerpopup-full__close::before {transform: none; width: 100%; height: 100%;
		margin: 0; left: 0; top: 0; border-radius: 0; background: #fafafa;
		-webkit-mask: var(--back-ico) 50% 50% / 100% 100% no-repeat;
		mask: var(--back-ico) 50% 50% / 100% 100% no-repeat;}
	.layerpopup-full__close::after {display: none;}
}

.layerpopup-full__close {--back-ico: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M44.3438 63.75H90V56.25H44.3438L65.3438 35.25L60 30L30 60L60 90L65.3438 84.75L44.3438 63.75Z' fill='%23000'/%3E%3C/svg%3E");}

/*
 * 가로로 누운 폰 — 세로가 좁아 안쪽 스크롤이 생기면 바닥 버튼이 묻힘
 * 버튼줄을 바닥에 세우고, 글이 그 밑으로 비쳐 사라지게 그라데이션을 깖
 *
 * 폭을 안 따짐 — 큰 폰은 눕히면 860 을 넘어 모바일 규칙 밖으로 나감
 */
@media all and (orientation: landscape) and (max-height: 500px) {
	/* 눕힌 큰 폰 — 860 을 넘어 모바일 글자 규칙이 안 걸림. 844 이하와 같은 값을 한 번 더 */
	.layerpopup {padding: 30px;}
	.layerpopup__panel {--layerpopup-pad-x: 16px; padding: 24px var(--layerpopup-pad-x);}
	.layerpopup__close {right: 8px; top: 8px; width: 48px; height: 48px;}
	.layerpopup__panel--closable {padding-top: 40px;}
	/* 바닥에 붙는 토스트는 뺌 — 폭 · 높이 · 아래 모서리를 제 것으로 둬야 함 */
	.layerpopup__panel:not(.layerpopup-toast) {width: 100%; max-height: calc(100vh - 60px); border-radius: 15px;}
	.layerpopup__ico {width: 52px; height: 52px;}
	.layerpopup__ico--vote {background-size: 37px 42px;}
	.layerpopup__ico--gift {background-size: 39px 43px;}
	.layerpopup__ico--warn {background-size: 45px 42px;}
	.layerpopup__ico--check {background-size: 46px 46px;}
	.layerpopup__ico--bookmark {background-size: 46px 46px;}
	.layerpopup__title {margin-top: 16px; font-size: 22px;}
	.layerpopup__text {margin-top: 8px; font-size: 17px; line-height: 1.24;}
	.layerpopup__title br, .layerpopup__text br {display: none;}
	.layerpopup__extra {margin-top: 16px;}
	.layerpopup__actions {gap: 12px; margin-top: 24px;}
	.layerpopup__btn {flex: 1 1 0; min-width: 0; height: 48px; padding: 0 12px; border-radius: 6px; font-size: 17px;}
	.layerpopup--banner {padding: 30px 47px;}
	.layerpopup--banner .layerpopup__panel {padding: 0 0 8px;}
	.layerpopup--banner .layerpopup__actions {margin-top: 9px; padding: 0 17px;}
	.layerpopup__check {gap: 7px; min-height: 44px; margin-top: -2px; padding: 12px 0; font-size: 12px;}
	.layerpopup__check input {width: 19px; height: 19px;}

	/* min 이라 따로 정한 값(쥬크박스 62%)은 그대로 */
	.layerpopup-toast {max-height: min(var(--layer-toast-max, 100%), 75%);}

	/* 아래 여백을 버튼줄로 옮김 — 그라데이션이 바닥까지 닿아야 함 */
	.layerpopup__panel {padding-bottom: 0;}
	.layerpopup__actions {position: sticky; z-index: 1; bottom: 0;
		margin-left: calc(var(--layerpopup-pad-x) * -1); margin-right: calc(var(--layerpopup-pad-x) * -1);
		padding: 12px var(--layerpopup-pad-x) calc(24px + env(safe-area-inset-bottom));
		background: var(--layerpopup-fade);}
	/* 가로는 폭이 남아 버튼이 덜렁 길어짐 */
	.layerpopup__btn {max-width: 320px;}

	/*
	 * 그림이 본체인 팝업 — 판에 옆 여백이 없어 버튼 옆으로 바탕 띠가 드러남. 그림 위에 그대로 띄움
	 * 당길 여백도 없으므로 음수 마진을 되돌림. 안 그러면 판에 가로 스크롤이 생김
	 */
	.layerpopup--banner .layerpopup__actions {margin-left: 0; margin-right: 0; background: none;}

	/* 전체화면 레이어(타로카드)는 위 판 규칙을 안 받음 — 높이 · 여백 · 둥근 모서리가 걸리면 아래가 비어 홈이 비침 */
	.layerpopup__panel.layerpopup-full {max-height: none; padding: 0; border-radius: 0;}
}

@media (prefers-reduced-motion: reduce) {
	.layerpopup, .layerpopup__panel {transition: none;}
	.layerpopup-full {transition: none;}
}
