/* ===== 말 걸기 편지 폼 (say-hi/) =====
   흰 편지지 위에 손으로 그은 밑줄 칸, 손그림 동그라미 고르기, 손그림 보내기 단추.
   보내면 편지가 접혀 종이비행기로 날아가고, 소원달 아래에 '잘 도착했어요' 화면이 나와요. */
.hello-form{position:relative;text-align:left;padding:8px 40px 34px;color:#2B2622;transition:opacity .5s ease,transform .7s cubic-bezier(.6,.05,.4,1)}
.hello-form .row{display:grid;grid-template-columns:1fr 1fr;gap:10px 28px}
.hello-form label{display:block;margin-top:22px}
.hello-form .lab{display:block;font-family:var(--f-hand-ko);font-size:1.45rem;line-height:1.1;color:#4A63C9}
html[lang="en"] .hello-form .lab{font-family:var(--f-hand-en);font-weight:700;font-size:1.3rem}
.hello-form .lab small{font-family:var(--f-sans);font-size:.72rem;color:#9A8F86;margin-left:6px;letter-spacing:.02em}

/* 손으로 그은 밑줄 칸 */
.hello-form input[type=text],.hello-form input[type=email]{width:100%;border:0;outline:0;background:transparent;font:inherit;font-size:1rem;
  padding:8px 2px 10px;color:#2B2622;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 8' preserveAspectRatio='none'%3E%3Cpath d='M2 4.5C60 3 120 5.6 200 4.2S330 3.2 398 4.8' fill='none' stroke='%23AFC1FF' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:bottom;background-size:100% 8px;transition:background-image .2s}
.hello-form input:focus{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 8' preserveAspectRatio='none'%3E%3Cpath d='M2 4.5C60 3 120 5.6 200 4.2S330 3.2 398 4.8' fill='none' stroke='%234A63C9' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E")}
.hello-form ::placeholder{color:#B8AFA6}

/* 편지지 줄이 그어진 본문 칸 */
.hello-form textarea{width:100%;min-height:236px;resize:vertical;border:0;outline:0;font:inherit;font-size:1rem;color:#2B2622;
  line-height:34px;padding:2px 2px;margin-top:4px;background:transparent;
  background-image:repeating-linear-gradient(to bottom,transparent 0 33px,rgba(175,193,255,.7) 33px 34px);background-attachment:local}
.hello-form textarea:focus{background-image:repeating-linear-gradient(to bottom,transparent 0 33px,rgba(74,99,201,.55) 33px 34px)}
.hello-form .count{display:block;text-align:right;font-size:.72rem;color:#B8AFA6;margin-top:4px}

/* 어떤 이야기? — 손그림 동그라미로 고르기 */
.hello-form fieldset{border:0;padding:0;margin:22px 0 0}
.hello-form legend{padding:0}
.topics{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.topics input{position:absolute;opacity:0;pointer-events:none}
.topics label{margin:0;cursor:pointer}
.topics span{display:inline-block;padding:8px 18px;font-size:.92rem;color:#5A524B;transition:transform .2s,color .2s;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44' preserveAspectRatio='none'%3E%3Cpath d='M14 5C40 2 86 3 106 6c11 2 12 30 1 33-24 4-70 3-93 0C2 37 1 9 14 5z' fill='none' stroke='%23C9BFB4' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat}
.topics label:nth-child(2) span{transform:rotate(-1.5deg)}
.topics label:nth-child(3) span{transform:rotate(1.2deg)}
.topics input:checked + span{color:#2A3FA0;font-weight:600;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44' preserveAspectRatio='none'%3E%3Cpath d='M14 5C40 2 86 3 106 6c11 2 12 30 1 33-24 4-70 3-93 0C2 37 1 9 14 5z' fill='%23EEF1FF' stroke='%234A63C9' stroke-width='1.9' stroke-linecap='round'/%3E%3Cpath d='M20 8c30-3 60-2 82 1' fill='none' stroke='%234A63C9' stroke-width='.8' opacity='.5'/%3E%3C/svg%3E")}
.topics input:focus-visible + span{outline:2px dashed #4A63C9;outline-offset:3px}

/* From. 서명 줄 + 보내기 */
.sign{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:26px;flex-wrap:wrap}
.sign .from{font-family:var(--f-hand-ko);font-size:1.6rem;color:#1F1F1F}
html[lang="en"] .sign .from{font-family:var(--f-hand-en);font-weight:700}
.send-btn{position:relative;border:0;cursor:pointer;padding:12px 30px 13px;font:inherit;font-family:var(--f-hand-ko);font-size:1.5rem;line-height:1;color:#fff;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 50' preserveAspectRatio='none'%3E%3Cpath d='M16 6c40-4 92-4 128 0 12 2 13 36 0 39-38 4-92 4-128 0C3 42 3 9 16 6z' fill='%234A63C9'/%3E%3Cpath d='M12 8c42-6 96-5 136-1 9 4 9 30-2 35' fill='none' stroke='%232A3FA0' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  transform:rotate(-1.5deg);transition:transform .25s}
html[lang="en"] .send-btn{font-family:var(--f-hand-en);font-weight:700;font-size:1.35rem}
.send-btn:hover{transform:rotate(1deg) translateY(-2px)}
.send-btn:disabled{opacity:.6;cursor:wait}
.send-btn svg{width:20px;height:20px;vertical-align:-3px;margin-left:6px}
.form-msg{min-height:1.4em;margin:14px 0 0;font-size:.88rem;color:#C0563F;text-align:right}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

/* 보내는 중: 편지가 살짝 접힘 */
.form-card.sending .hello-form{opacity:.55;transform:perspective(900px) rotateX(8deg)}

/* 보낸 뒤: 편지는 접혀 사라지고, 종이비행기가 달로 */
.sent-view{display:none;text-align:center;padding:40px 28px 46px;color:#2B2622;outline:0}
.form-card.sent .hello-form{display:none}
.form-card.sent .letter-head{display:none}
.form-card.sent .sent-view{display:block;animation:sentIn .8s cubic-bezier(.2,.8,.2,1) both}
@keyframes sentIn{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
.sent-sky{position:relative;height:150px;margin:0 auto 6px;max-width:360px}
.sent-sky .moon{position:absolute;right:18px;top:0;width:86px;height:86px;color:#E9B44C;animation:moonGlow 3.2s ease-in-out infinite}
@keyframes moonGlow{50%{filter:drop-shadow(0 0 10px rgba(233,180,76,.55))}}
.sent-sky .plane{position:absolute;left:0;bottom:6px;width:64px;height:64px;color:#4A63C9;offset-path:path('M10 120 C 90 120, 140 40, 262 36');
  animation:fly 2.6s cubic-bezier(.45,.05,.3,1) .2s both}
@keyframes fly{from{offset-distance:0%;opacity:0}12%{opacity:1}to{offset-distance:100%;opacity:1}}
.sent-sky .trail{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.sent-sky .trail path{fill:none;stroke:#AFC1FF;stroke-width:1.6;stroke-dasharray:4 7;stroke-linecap:round;
  stroke-dashoffset:400;animation:trail 2.6s ease .2s forwards}
@keyframes trail{to{stroke-dashoffset:0}}
.sent-view h2{font-family:var(--f-hand-ko);font-weight:400;font-size:clamp(2rem,6vw,2.8rem);line-height:1.15;margin:4px 0 12px;color:#1F1F1F}
html[lang="en"] .sent-view h2{font-family:var(--f-hand-en);font-weight:700}
.sent-view p{margin:6px auto;max-width:400px;color:#5A524B;line-height:1.7}
.sent-links{display:flex;justify-content:center;gap:22px;margin-top:26px;flex-wrap:wrap}
.sent-links a{font-family:var(--f-hand-ko);font-size:1.35rem;color:#1F1F1F;text-decoration:none;position:relative;padding-bottom:4px}
html[lang="en"] .sent-links a{font-family:var(--f-hand-en);font-weight:700;font-size:1.2rem}
.sent-links a::after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;background:#3352D6;transform:scaleX(.35);transform-origin:left;transition:transform .4s}
.sent-links a:hover::after{transform:scaleX(1)}

@media (max-width:600px){
  .hello-form{padding:4px 20px 26px}
  .hello-form .row{grid-template-columns:1fr}
  .sign{justify-content:flex-end}
}
@media (prefers-reduced-motion:reduce){.sent-sky .plane,.sent-sky .trail path,.form-card.sent .sent-view{animation:none}.sent-sky .plane{offset-distance:100%}.sent-sky .trail path{stroke-dashoffset:0}}

/* ===== 크라프트 종이 편지지 (동화책 글 쪽 종이 images/book/web/paper.webp) =====
   흰 칸 없이 종이 위에 점선 밑줄만 */
.sayhi .form-card{background:#C8B497 url('../images/book/web/paper.webp') left top/cover no-repeat;border-radius:2px;
  box-shadow:0 2px 3px rgba(60,40,20,.18),0 14px 34px rgba(30,20,10,.28)}
.sayhi .form-card .sketch .s1{stroke:#F2D27A;opacity:.85}
.sayhi .form-card .sketch .s2{stroke:#FAFAFA;opacity:.7}
.hello-form,.sent-view{color:#2E2620}
.hello-form .lab{color:#2F45A8}
.hello-form .lab small{color:#6E5E4E}
.hello-form ::placeholder{color:rgba(62,48,36,.45)}

/* 이름·메일 칸: 점선 밑줄만 */
.hello-form input[type=text],.hello-form input[type=email]{background:none!important;
  border-bottom:2px dotted rgba(62,48,36,.5);border-radius:0;transition:border-color .2s}
.hello-form input[type=text]:focus,.hello-form input[type=email]:focus{border-bottom-color:#2F45A8}

/* 본문 칸: 편지지 점선 줄 (34px마다 한 줄) */
.hello-form textarea{background:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='34'%3E%3Ccircle cx='2' cy='32.6' r='1.05' fill='%233E3024' fill-opacity='.5'/%3E%3C/svg%3E");
  background-repeat:repeat;background-attachment:local}
.hello-form textarea:focus{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='34'%3E%3Ccircle cx='2' cy='32.6' r='1.15' fill='%232F45A8' fill-opacity='.75'/%3E%3C/svg%3E")}
.hello-form .count{color:rgba(62,48,36,.55)}

/* 이야기 고르기: 종이 위 손그림 동그라미 */
.topics span{color:#4A3C30;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44' preserveAspectRatio='none'%3E%3Cpath d='M14 5C40 2 86 3 106 6c11 2 12 30 1 33-24 4-70 3-93 0C2 37 1 9 14 5z' fill='none' stroke='%233E3024' stroke-opacity='.45' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E")}
.topics input:checked + span{color:#22348A;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44' preserveAspectRatio='none'%3E%3Cpath d='M14 5C40 2 86 3 106 6c11 2 12 30 1 33-24 4-70 3-93 0C2 37 1 9 14 5z' fill='%23FFF8EC' fill-opacity='.55' stroke='%232F45A8' stroke-width='1.9' stroke-linecap='round'/%3E%3Cpath d='M20 8c30-3 60-2 82 1' fill='none' stroke='%232F45A8' stroke-width='.8' opacity='.5'/%3E%3C/svg%3E")}
.form-msg{color:#A2391F}
.sent-view p{color:#4A3C30}
.sent-links a{color:#2E2620}

/* 우표 대신: 종이에 찍힌 스마일 도장이 서명 옆에 자연스럽게 (assets/paper-smile.png) */
.sayhi .stamp{display:none}
.sign .from{position:relative;padding-right:84px}
.sign .from::after{content:'';position:absolute;right:-6px;top:50%;width:84px;height:62px;transform:translateY(-58%) rotate(-9deg);
  background:url('paper-smile.png') center/contain no-repeat;mix-blend-mode:multiply;opacity:.92;pointer-events:none}

/* 보내기 단추: 튀지 않게 — 잉크로 그린 손그림 테두리만, 마우스를 올리면 살짝 파랗게 */
.send-btn{color:#2E2620;transform:rotate(-1deg);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 50' preserveAspectRatio='none'%3E%3Cpath d='M16 6c40-4 92-4 128 0 12 2 13 36 0 39-38 4-92 4-128 0C3 42 3 9 16 6z' fill='%23FFF8EC' fill-opacity='.28' stroke='%233E3024' stroke-opacity='.7' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M12 9c42-6 96-5 136-1' fill='none' stroke='%233E3024' stroke-opacity='.35' stroke-width='.9' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat}
.send-btn:hover{color:#22348A;transform:rotate(1deg) translateY(-1px);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 50' preserveAspectRatio='none'%3E%3Cpath d='M16 6c40-4 92-4 128 0 12 2 13 36 0 39-38 4-92 4-128 0C3 42 3 9 16 6z' fill='%23FFF8EC' fill-opacity='.5' stroke='%232F45A8' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M12 9c42-6 96-5 136-1' fill='none' stroke='%232F45A8' stroke-opacity='.5' stroke-width='.9' stroke-linecap='round'/%3E%3C/svg%3E")}

/* 보내기 단추: 상자 없이 손글씨만 — 조금 크고 진하게, 마우스를 올리면 파란 손그림 밑줄 (위 메뉴와 같은 느낌) */
.send-btn{background:none!important;padding:4px 2px 12px;color:#1F1812;font-size:1.85rem;transform:none;position:relative}
html[lang="en"] .send-btn{font-size:1.7rem}
.send-btn::after{content:'';position:absolute;left:0;right:0;bottom:0;height:10px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M3 6C25 3.5 50 7.5 75 5.2S108 4 117 5.6' fill='none' stroke='%233352D6' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  clip-path:inset(0 100% 0 0);transition:clip-path .45s cubic-bezier(.2,.8,.2,1)}
.send-btn:hover,.send-btn:focus-visible{color:#1F1812;transform:none;background:none!important}
.send-btn:hover::after,.send-btn:focus-visible::after{clip-path:inset(0 0 0 0)}
.send-btn:focus-visible{outline:none}
.send-btn svg{width:22px;height:22px;margin-left:8px;vertical-align:-2px;transition:transform .35s}
.send-btn:hover svg{transform:translate(3px,-3px) rotate(-6deg)}
/* 편지 보낸 뒤: 작은 커피 한 줄 */
.sent-coffee{display:inline-flex;align-items:center;gap:8px;margin-top:22px;font-size:.92rem;color:#5B5470;text-decoration:none}
.sent-coffee .pic{width:1.3em;height:1.3em;color:#B8612E}
.sent-coffee:hover span{text-decoration:underline;text-underline-offset:3px}
/* 편지 뒤 커피 한 줄 — 손글씨로, 또렷하게 */
.sent-coffee{margin-top:30px;gap:10px;padding:8px 18px;border:1.5px dashed rgba(184,97,46,.55);border-radius:999px;color:#4A2E1E;font-family:var(--f-hand-ko);font-size:1.3rem;transition:transform .25s,border-color .25s}
html[lang="en"] .sent-coffee{font-family:var(--f-hand-en);font-weight:700;font-size:1.15rem}
.sent-coffee .pic{width:1.5em;height:1.5em;color:#B8612E}
.sent-coffee:hover{transform:rotate(-1.5deg);border-color:#B8612E}

/* 모노톤 (2026-10): 편지지 대신 가운데 깔끔한 입력칸 */
.sayhi{max-width:760px;text-align:center}
.sayhi .stars,.sayhi .sketch,.sayhi .letter-head{display:none}
.sayhi .mx-head{display:block;text-align:center}
.sayhi .mx-rule{justify-content:center}
.sayhi .mx-aside{align-items:center;text-align:center}
.sayhi .mx-lead{max-width:none}
.hi-ways{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 22px;margin:-24px 0 40px;font-size:.84rem;font-weight:600}
.hi-ways a{display:inline-flex;align-items:center;gap:7px;color:var(--muted);text-decoration:none;transition:color .2s}
.hi-ways a:hover{color:var(--ink)}
.hi-ways .pic{width:1.2em;height:1.2em}
.sayhi .form-card{background:#fff!important;border:1px solid var(--line)!important;border-radius:2px!important;box-shadow:none!important;padding:clamp(28px,5vw,48px)!important;text-align:left;transform:none!important;color:var(--ink)}
.sayhi .form-card::before,.sayhi .form-card::after{display:none!important}
.sayhi .hello-form .lab,.sayhi .hello-form legend{font-family:var(--f-sans)!important;font-size:.7rem!important;font-weight:700;letter-spacing:.12em;color:var(--muted)!important}
.sayhi .hello-form input,.sayhi .hello-form textarea{font-family:var(--f-sans)!important;font-size:1.02rem!important;background:none!important;border:0!important;border-bottom:1px solid rgba(17,17,17,.25)!important;border-radius:0!important;color:var(--ink)!important;background-image:none!important}
.sayhi .hello-form input:focus,.sayhi .hello-form textarea:focus{outline:none;border-bottom-color:var(--ink)!important}
/* 이야기 종류: 상자 없이 작은 동그라미 + 글자 (고른 것만 채워짐) */
.sayhi .topics{gap:10px 28px;margin-top:12px}
.sayhi .topics span{display:inline-flex!important;align-items:center;gap:10px;padding:4px 0!important;font-family:var(--f-sans)!important;font-size:.95rem!important;font-weight:500!important;
  color:var(--muted)!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;clip-path:none!important;-webkit-mask:none!important;mask:none!important}
.sayhi .topics span::before{content:'';width:14px;height:14px;border-radius:50%;border:1.5px solid rgba(17,17,17,.35);box-sizing:border-box;transition:border .2s,background .2s;flex:none}
.sayhi .topics span::after{display:none!important}
.sayhi .topics label:hover span{color:var(--ink)!important}
.sayhi .topics input:checked+span{color:var(--ink)!important;font-weight:600!important}
.sayhi .topics input:checked+span::before{border:4.5px solid var(--ink)}
.sayhi .topics input:focus-visible+span{outline:1px solid var(--ink)!important;outline-offset:4px}
.sayhi .send-btn{font-family:var(--f-sans)!important;background:var(--ink)!important;color:var(--bg)!important;border:0!important;border-radius:999px!important;padding:14px 26px!important;font-size:.95rem!important;font-weight:700;box-shadow:none!important;display:inline-flex;gap:8px}
.sayhi .send-btn svg{display:none}
.sayhi .sign{display:flex;justify-content:flex-end;align-items:center}
.sayhi .sent-view h2,.sayhi .sent-view p{font-family:var(--f-sans)!important;color:var(--ink)}
