:root {
	--navy: #11213e;
	--navy-soft: #273958;
	--coral: #ef554b;
	--coral-dark: #d93d35;
	--gold: #d7a32e;
	--cream: #fffaf0;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
	margin: 0;
	color: var(--navy);
	background:
		radial-gradient(circle at 50% -8%, rgba(255, 224, 151, .82), transparent 34%),
		linear-gradient(160deg, #fffdf8 0%, #f9f2e5 58%, #eee2ce 100%);
	font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont,
				 "Segoe UI", sans-serif;
}

body .main {
	width: min(100%, 480px);
	min-height: 100vh;
	margin: 0 auto;
	padding: 24px 18px 32px;
	background: linear-gradient(180deg, rgba(255, 253, 248, .74), rgba(249, 242, 229, .5));
	box-shadow: 0 0 55px rgba(74, 50, 16, .1);
}

#paper-form { width: 100%; }
.main .header { margin: 0 0 18px; padding: 0; text-align: center; background: transparent; }
.store_title { width: 100%; }
.store_badge {
	display: inline-block;
	max-width: 100%;
	margin: 0 0 8px;
	padding: 6px 14px;
	border: 1px solid rgba(217, 61, 53, .2);
	border-radius: 999px;
	color: var(--coral-dark);
	background: linear-gradient(180deg, #fff7ec, #fbe7d2);
	box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(150, 76, 35, .08);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
	overflow-wrap: anywhere;
}
.store_badge::before { content: "♛"; margin-right: 5px; color: #c78e17; }
.store_title h1 {
	margin: 0;
	font-size: clamp(25px, 7vw, 32px);
	font-weight: 900;
	line-height: 1.24;
	letter-spacing: -.04em;
	text-shadow: 0 1px 0 #fff, 0 3px 8px rgba(22, 35, 61, .12);
}
.store_title h1 .title_gold {
	color: #a94f05;
	background: none;
	-webkit-background-clip: initial;
	background-clip: initial;
	-webkit-text-fill-color: #a94f05;
	-webkit-text-stroke: 0;
	filter: none;
	text-shadow: 0 1px 0 #fff2d7, 0 2px 5px rgba(126, 58, 0, .18);
}
.store_subtitle { margin: 7px 0 0; color: #746854; font-size: 14px; }

.main .contents {
	width: 100%;
	padding: 16px 15px 18px;
	border: 1px solid rgba(209, 169, 77, .52);
	border-radius: 26px;
	background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(255, 248, 233, .93));
	box-shadow: inset 0 1px 0 #fff, 0 18px 45px rgba(84, 59, 18, .14);
}

.main .point {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 15px;
	border: 0;
	border-radius: 0;
}
.main .point textarea {
	display: block;
	width: 100% !important;
	height: 78px;
	padding: 12px 14px;
	resize: none;
	border: 1px solid #ead6a8;
	border-radius: 15px;
	outline: none;
	color: #554832;
	background: #fffaf0 !important;
	-webkit-appearance: none;
	appearance: none;
	font-family: inherit !important;
	font-size: 14px !important;
	line-height: 1.55;
	text-align: left;
}

.tel_number {
	position: relative;
	margin: 0 0 17px;
	padding: 12px 15px 10px;
	border: 2px solid #dfb14a;
	border-radius: 17px;
	background: #fff;
	box-shadow: inset 0 2px 5px rgba(76, 51, 10, .07), 0 5px 12px rgba(101, 70, 20, .08);
	text-align: center;
}
.tel_label { display: block; margin-bottom: 3px; color: #9a762a; font-size: 12px; font-weight: 800; }
.tel_number .number {
	min-height: 42px;
	color: var(--navy);
	font-size: clamp(27px, 8vw, 38px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: .025em;
}
.tel_number .guide {
	position: absolute;
	top: 39px;
	left: 0;
	display: block;
	width: 100%;
	min-height: 18px;
	color: #a49a88;
	font-size: 13px;
	line-height: 1.2;
	pointer-events: none;
}

.keypad ul {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	justify-content: center;
	width: 100%;
	max-width: 340px;
	gap: 12px 14px;
	margin: 0 !important;
	margin-inline: auto !important;
	padding: 0 !important;
	list-style: none;
}
.keypad ul li {
	display: grid !important;
	width: 100% !important;
	aspect-ratio: 1 / 1;
	place-items: center;
	margin: 0 !important;
	border: 1px solid #e5d4ae;
	border-radius: 50%;
	color: var(--navy);
	background: linear-gradient(145deg, #fffefa, #f8edd8);
	box-shadow: 0 4px 0 #d7bd86, 0 8px 14px rgba(77, 53, 16, .1), inset 0 2px 1px #fff;
	font-size: 27px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease;
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	user-select: none;
	touch-action: pan-y;
	-webkit-touch-callout: none;
}
.keypad ul li:active { box-shadow: 0 1px 0 #d7bd86, inset 0 3px 7px rgba(90, 59, 12, .1); transform: translateY(3px); }
.keypad ul li.all_del, .keypad ul li.delete { color: var(--coral-dark); font-weight: 800; }

.main footer { margin-top: 15px; }
.main .join_box { margin: 0 0 12px; padding: 0; list-style: none; }
.main .join_box > li { margin: 0; padding: 0; }
.agree_box {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 4px 13px;
	border: 1px solid #e8d4a8;
	border-radius: 15px;
	background: linear-gradient(145deg, #fffdf8, #fff5e4);
	box-shadow: inset 0 1px 0 #fff, 0 5px 12px rgba(105, 73, 20, .07);
}
.agree_row { display: flex; width: 100%; min-height: 52px; align-items: center; gap: 8px; }
.agree_label {
	display: flex;
	flex: 1;
	min-height: 52px;
	align-items: center;
	gap: 10px;
	margin: 0;
	cursor: pointer;
	touch-action: pan-y;
	-webkit-tap-highlight-color: transparent;
}
#chk { width: 26px; height: 26px; flex: 0 0 26px; margin: 0; accent-color: var(--coral); cursor: pointer; }
.agree_text { flex: 1; padding: 11px 0; font-size: 14px; line-height: 1.4; word-break: keep-all; }
#atagview {
	margin: 0;
	padding: 9px 3px;
	border: 0;
	color: #9b6c0d;
	background: transparent;
	font-size: 13px;
	font-weight: 800;
	text-decoration: underline;
	cursor: pointer;
}
#txtareaDiv { margin: 2px 0 9px; }
#txtareaDiv textarea {
	width: 100%;
	min-height: 125px;
	padding: 10px;
	border: 1px solid #dfcfaf;
	border-radius: 10px;
	color: #665b48;
	background: #fff;
	font-size: 12px;
	line-height: 1.45;
}

.main footer .button { width: 100%; margin: 10px 0 0; }
.main footer .button button {
	position: relative;
	width: 100%;
	height: 58px;
	padding: 0 45px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 15px;
	color: #fff;
	background: linear-gradient(145deg, #273b60, #0f1e38);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 7px 16px rgba(17, 33, 62, .2);
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
	transition: transform .2s ease, opacity .2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}
.main footer .button button::after {
	content: "›";
	position: absolute;
	top: 50%;
	right: 19px;
	font-size: 29px;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-54%);
}
.main footer .button:first-of-type button {
	border-color: rgba(255, 255, 255, .22);
	background: linear-gradient(145deg, #ff6e60, #db3e36);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 7px 16px rgba(165, 49, 43, .2);
}

.main footer #earn {
    color: #fff;
    background: linear-gradient(180deg, #ff726c 0%, #ef4640 100%);
	border-color: rgba(255, 255, 255, .22);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 7px 16px rgba(239, 70, 64, .2);
}
.main footer .button button:active { transform: translateY(1px); box-shadow: 0 3px 9px rgba(17, 33, 62, .16); }
#earn:disabled, #list:disabled { opacity: .58; cursor: default; transform: none; }

@media (max-width: 480px) {
	body .main { padding: 9px 10px 18px; }
	.main .header { margin-bottom: 8px; }
	.store_badge { margin-bottom: 4px; padding: 4px 11px; font-size: 11px; }
	.store_title h1 { padding: 2px 0; font-size: clamp(27px, 8vw, 31px); line-height: 1.22; }
	.store_subtitle { margin-top: 3px; font-size: 11px; line-height: 1.3; }
	.main .contents { padding: 9px 10px 11px; border-radius: 20px; }
	.main .point { margin-bottom: 8px; }
	.main .point textarea { height: 58px; padding: 7px 10px; border-radius: 11px; font-size: 11px !important; line-height: 1.45; }
	.tel_number { margin-bottom: 9px; padding: 6px 11px 5px; border-radius: 13px; }
	.tel_label { margin-bottom: 1px; font-size: 10px; }
	.tel_number .number { min-height: 31px; font-size: clamp(23px, 8vw, 31px); }
	.tel_number .guide { top: 28px; min-height: 14px; font-size: 10px; }
	.keypad ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 11px; }
	.keypad ul li { font-size: 24px; box-shadow: 0 3px 0 #d7bd86, 0 5px 9px rgba(77, 53, 16, .09), inset 0 2px 1px #fff; }
	.main footer { margin-top: 9px; }
	.main .join_box { margin-bottom: 7px; }
	.agree_box { padding: 2px 9px; border-radius: 12px; }
	.agree_row, .agree_label { min-height: 42px; }
	#chk { width: 24px; height: 24px; flex-basis: 24px; }
	.agree_text { padding: 7px 0; font-size: 11px; }
	#atagview { padding: 6px 2px; font-size: 11px; }
	.main footer .button { margin-top: 7px; }
	.main footer .button button { height: 48px; border-radius: 12px; font-size: 15px; }
	.main footer .button button::after { right: 15px; font-size: 24px; }
	.main .point.point_summary { margin-bottom: 8px; padding: 8px 5px; }
	.main .point_summary h4 { margin-bottom: 2px; font-size: 10px; }
	.main .point_summary .price { font-size: 18px; }
	.main footer .text { margin-bottom: 7px; padding: 8px 10px; font-size: 10px; line-height: 1.4; }
}

@media (max-width: 480px) and (max-height: 700px) {
	body .main { padding-top: 6px; }
	.store_subtitle { display: none; }
	.main .point textarea { height: 52px; }
}

/* QR 적립 화면의 금액 요약 카드 */
.main .point.point_summary {
  display: flex;
  align-items: stretch;
  margin-bottom: 15px;
  padding: 14px 8px;
  border: 1px solid #ead6a8;
  border-radius: 15px;
  background: #fffaf0;
}
.main .point_summary .column { flex: 1; min-width: 0; text-align: center; }
.main .point_summary .divider { width: 1px; margin: 0 8px; background: #e2c98f; }
.main .point_summary h4 { margin: 0 0 5px; color: #8a6b2c; font-size: 12px; font-weight: 800; }
.main .point_summary .price { color: var(--navy); font-size: 22px; font-weight: 900; }
.main .point_summary .unit { margin-left: 3px; color: #756952; font-size: 13px; }
.main footer .text {
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid #e8d4a8;
  border-radius: 15px;
  color: #665b48;
  background: #fffaf0;
  font-size: 12px;
  line-height: 1.55;
}
.main footer .text p { margin: 0; }

