@charset "utf-8";
@import url('reset.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root{
	--bg: #201D1D;

	--primary: #015FC1;  /* 포카리파링 */
	--second: #EED253; /* 노랑 */
	--third: #246cc5;

	--transition-custom: all 0.3s ease-in;
	--school: 'SchoolSafetyNotification', sans-serif;
	--school-bold: 'SchoolSafetyNotification-Bold', sans-serif;
}


/* color */
.c-second {color:var(--second) !important;} 
.c-gray {color:#888 !important;}



.wrap {position:relative; max-width:768px; /*min-height:667px;*/ height:100vh; margin:0 auto;}
.inner {width:92%; margin:0 auto;}

.lg-space {margin-top:12vh;}
.md-space {margin-top:9vh;}
.sm-space {margin-top:6vh;}
.xs-space {margin-top:3vh;}

/* .bg-right {position:fixed; right:0; top: env(safe-area-inset-top); width:160px; height:auto; z-index:-1;}  고정 */
.bg-right {position:absolute; right:0; top: 0; width:160px; height:auto; z-index:-1;}
.bg-bottom {position:fixed; left:0; bottom:0; width:100%; padding-bottom: env(safe-area-inset-bottom); background: var(--bg); line-height:0; text-align:center; z-index:-1;}
i.fill {font-family: 'Material Symbols Rounded'; font-variation-settings: 'FILL' 1}

/* intro */
.intro {display:flex; flex-direction:column; justify-content:center; align-items:center; height:100vh; gap:8vh;}
.intro .img-intro {position:relative; text-align:center;}
.intro .img-intro img {width:60%; max-width:500px; height:auto;}
.intro .txt-intro {text-align:center; color:#fff; font-weight:400; line-height:150%; font-size:20px;}





/* 스크래치 */
.scratch {display:flex; flex-direction:column; min-height:100%; text-align:center;}
.scratch .title {position:relative; padding:50px 0 60px;}
.scratch .title img {width:75%; max-width:450px; height:auto;}
.scratch .title .date {color:var(--second); font-weight:600; font-size:16px; padding-top:10px;}
.scratch .title .bg {position:absolute; left:0; bottom:0; z-index:-1; line-height:0;}
.scratch .title .bg img {width:100%; max-width:100%; height:auto;}
.scratch .slogan {padding:13px; background: linear-gradient(to right,  #d27d12 0%,#eabb2e 34%,#ecc647 38%,#edd567 46%,#eede7a 53%,#efe181 58%,#eec93e 82%,#eed253 91%,#eedd6d 100%); }
.scratch .slogan h2 {color:#201D1C; font-family:var(--school-bold); font-size:26px; font-weight: 700;}
.scratch .slogan h3 {color:#201D1C; font-family:var(--school-bold); font-size:24px;}
.scratch .scratchBox {flex-grow:1; background:var(--primary); padding:30px 0 20px;}
.scratch .scratchBox > p {color:#fff; font-weight:600; font-size:18px;}


.scratch-card {position: relative; border: 4px solid #aaa; border-radius: 10px; padding: 12px; width: 82%; max-width:400px; height: 150px; background-color: #E4E4E4; margin:15px auto 0;}

/* cover container */
.scratch-card-cover-container {position: absolute; z-index: 1; top: 0; left: 0; border-radius: 4px; width: 100%; height: 100%; filter: url('#remove-black');  transition: opacity 0.4s;}
.scratch-card-cover-container.clear {opacity: 0;}
.scratch-card-cover-container.hidden {display: none;}

/* canvas */
.scratch-card-canvas {position: absolute; z-index: 2; top: 0; left: 0; width: 100%; height: 100%; cursor: grab; touch-action: none;}
.scratch-card-canvas.hidden {opacity: 0;}
.scratch-card-canvas:active {cursor: grabbing;}

/* canvas render */
.scratch-card-canvas-render {position: absolute; z-index: 1; top: 0; left: 0; width: 100%; height: 100%; background-color: transparent; transition: background-color 0.2s; }
.scratch-card-canvas-render.hidden {display: none;}

/* cover */
.scratch-card-cover {display: flex; justify-content: center; align-items: center; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #cfced6; background-image: linear-gradient(to right, #cfced6, #e0dfe6, #efeef3, #e0dfe6, #cfced6); overflow: hidden; border-radius:5px; font-size:24px; font-weight:bold;}

/* shine effect */
.scratch-card-cover::before {content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(135deg, transparent 40%, rgb(255 255 255 / 0.8) 50%, transparent 60%); background-position: bottom right; background-size: 300% 300%; background-repeat: no-repeat;}
.scratch-card-cover.shine::before {animation: shine 8s infinite;}

@keyframes shine {
  50% {background-position: 0% 0%;}
  100% { background-position: -50% -50%;}
}

/* noise overlay */
.scratch-card-cover::after {content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.1; filter: url('#noise'); }

/* background */
.scratch-card-cover-background {width: 100%; height: 100%; fill: #555; opacity: 0.1;}

/* image */
.scratch-card-image {padding-top:10px; width:auto; height:110px; object-fit: contain; /*filter: drop-shadow(0 4px 4px rgb(0 0 0 / 0.16));*/ user-select: none; will-change: transform;}
.scratch-card-image.animate {animation: pop-out-in cubic-bezier(.65, 1.35, .5, 1) 1s;}

@keyframes pop-out-in {
  36% {transform: scale(1.125);}
  100% {transform: scale(1);}
}





/* 응모하기 */
.form-apply {display:grid; grid-template-columns:auto 150px; margin:50px 0; border:4px solid #111; border-radius:20px; height:60px; overflow:hidden;}
.form-apply input[type=text] {height:auto; border:none; font-size:20px; padding:0 10px; background:#e7f5fe;}
.form-apply .btn-apply {background:#111; color:#fff; text-align:center; line-height:50px; font-size:20px; font-family:var(--sc-dream); font-weight: 600;}

@media (max-width:568px){
	.form-apply {grid-template-columns:auto 90px; margin:30px 0; border:2px solid #111; border-radius:10px; height:50px;}
	.form-apply input[type=text] {font-size:16px; padding:0 6px;}
	.form-apply .btn-apply {line-height:50px; font-size:15px;}
}



/* 당첨결과 */
.result {padding-top:8vh; text-align:center;}
.result .result-img {}
.result .result-img .gold {width:80px;}
.result .result-img .bag {width:150px;}
.result > h3 {color:#fff; font-family:var(--school); font-size:30px; padding-top:20px;}
.result .result-detail p {color:#aaa; font-size:15px; padding:20px 0 10px;}
.result .result-detail strong {display:block; color:#fff; font-size:20px; font-weight:600;}

.infoBox {background:#2B2827; border-radius:5px; padding:20px;}
.infoBox .info-title {display:flex; gap:5px; padding-bottom:8px;}
.infoBox .info-title h4 {color:#fff; font-size:15px; font-weight:600;}
.infoBox .info-title i {color:#fff; font-size:18px; font-variation-settings:'FILL' 1}
.txt {color:#aaa; font-size:13px;}
.txt-16 {color:#fff; font-size:16px; font-weight:600;}
.btn-submit {display:block; width:100%; background: linear-gradient(to right,  #eec93e 0%,#f1be1a 100%); color:#000; text-align:center; line-height:60px; font-size:20px; font-family:var(--school); border-radius:50px; margin-bottom:20px;}


 /* 당첨자입력폼 */
.hd-title {color:#fff; font-size:20px; font-weight:400; text-align:center; margin: 13px 0 20px;}
.field { margin-bottom:20px; }
.field label {display: block; font-size: 14px; margin-bottom:8px; color: #fff;}
.wrap form input[type="text"], .wrap form input[type="tel"], .wrap form textarea {width: 100%; padding: 12px 14px; border: 1px solid #363433; border-radius:10px; font-size: 16px; background: #363433; min-height:50px; color:#fff;}
.consent {margin-top: 20px;}
.consent-row {display: flex; align-items: center; justify-content: space-between; gap: 8px;}
.toggle-btn {background: none; font-size: 13px;color: #888; cursor: pointer;}

.checkbox {display: flex; align-items: center; gap: 8px; flex: 1; cursor: pointer; user-select: none;}
.checkbox input {display: none;}
.checkmark {width: 22px; height: 22px; border-radius: 6px; background: #666; position: relative; transition: all 0.25s ease; }
.checkmark::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 12px; border: solid black; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); opacity: 0; transition: all 0.25s ease; }
.checkbox input:checked + .checkmark {background: var(--second)}
.checkbox input:checked + .checkmark::after {transform: rotate(45deg) scale(1); opacity: 1;}
.checkbox:active .checkmark {transform: scale(0.9);}
.label-text {color: #fff;}
.checkbox input:focus + .checkmark {box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.3);}

.consent-detail {max-height: 0; overflow-y:scroll; transition: 0.3s ease; order-radius:10px; }
.consent-detail.open { max-height: 180px; margin-top: 12px; border:1px solid #444;  border-radius:10px;}
.consent-detail-inner { padding: 14px; font-size: 13px; color: #555; line-height: 1.6; }
.consent-detail-inner h3 {font-size: 13px; margin: 0 0 8px; color: #ccc; }
ul.bullet li {position:relative; color:#aaa; margin:3px 0; padding-left:8px;}
ul.bullet li:before {position:absolute; display:inline-block; left:0; top:7px; width:2px; height:2px; border-radius:50%; background:#ccc; content:'';}


/* 접수완료&재접속 */
.reconnect {padding-top:50px; text-align:center;}
.reconnect i {font-size:50px; color:var(--second);}
.reconnect h3 {color:#fff; font-family:var(--school); font-size:22px; padding:15px 0;}
.reconnect p {color:#aaa; font-size:15px; line-height:1.4;}

.betweenBox {display:grid; grid-template-columns: 100px 1fr; gap:10px 20px;}
.betweenBox dt {}
.betweenBox dd {text-align:right;}