/*OBF*/@font-face{font-family:'OBrush';src:url('../../fonts/obrush_c21.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+C12D,U+C130-C131,U+C139-C140,U+C154-C168,U+C194-C27D,U+C2A8,U+C2B4,U+C2B7-C2B9,U+C2DD,U+C2EB,U+C2ED-C30D,U+C368-C53B,U+C545,U+C549,U+C54C,U+C555-C557,U+C559-C55E,U+C561-C571,U+C57D-C598,U+C5B5-C5BB,U+C5BD-C5C4,U+C5C7,U+C5C9-C5CC,U+C5D1,U+C5E0-C5E3,U+C5ED-C5EE,U+C5FC-C61B,U+C625,U+C62C-C62D,U+C633-C63B,U+C644,U+C655-C6A9,U+C6B1,U+C6C0-C6CC,U+C6DC-C6F9,U+C717-C721,U+C728-C735,U+C751,U+C775,U+C783,U+C787,U+C789-C78E,U+C794-C7A4,U+C7A6,U+C7C1-C800,U+C810,U+C813,U+C81D-C838,U+C871-C881,U+C88B-C8E0,U+C8FD,U+C904-C90D,U+C92C-C99D,U+C9CA-C9F1,U+CA0D-CC3E,U+CC45-CCA8,U+CCAD,U+CCD0-CCE4,U+CD09-CD1B,U+CD5C-CD95,U+CD9C-CE35,U+CE5C-CE6D,U+CE7C-CEA1,U+CEE8,U+CEF7-CF08,U+CF20-CF8C,U+CFFC-D06C,U+D074-D07D,U+D0A8-D0B9,U+D0C1-D0D5,U+D0ED-D0F1,U+D131-D134,U+D145,U+D150-D17C,U+D1A1-D1A4,U+D1F4,U+D230-D30E,U+D31D-D328,U+D380-D398,U+D39C-D3B4,U+D3D0,U+D3ED-D45C,U+D479-D47C,U+D488-D551,U+D559,U+D56B-D56D,U+D575-D588,U+D5C8,U+D5D0-D600,U+D608-D64D,U+D658-D669,U+D68D-D749,U+D754-D790,U+D799-D7A3}@font-face{font-family:'OBrush';src:url('../../fonts/obrush_c11.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+AC04-AC07,U+AC11-AC16,U+AC1A,U+AC1D-AC54,U+AC71-AC77,U+AC81,U+AC89,U+ACA0-ACAC,U+ACBD-ACC1,U+ACE1-ACE4,U+ACE8-ACF1,U+ACF5,U+AD04-AD50,U+AD70-AD73,U+AD76-AD7F,U+AD82-ADC8,U+ADE0,U+ADF9-ADFC,U+AE09-AE0B,U+AE34,U+AE40,U+AE43-AE4A,U+AE4E-AE65,U+AE7C,U+AEBE-AECF,U+AEF4-AFC0,U+AFD4-B04A,U+B053-B08D,U+B0A1,U+B0A9-B0AB,U+B0AD-B0B3,U+B0B8-B0E5,U+B109-B10C,U+B113-B123,U+B128-B141,U+B155,U+B179-B192,U+B194-B1A8,U+B20C-B290,U+B299-B2AC,U+B2CC-B2D0,U+B2DD,U+B2E5,U+B2EB,U+B2ED-B2EE,U+B2FF,U+B304-B313,U+B355-B35C,U+B365-B371,U+B3C5-B3D5,U+B3FC-B410,U+B41C-B429,U+B451-B454,U+B460-B4C8,U+B4DD,U+B4E3,U+B4EC-B545,U+B550-B5A1,U+B5A8-B755,U+B77D-B784,U+B78F-B790,U+B799-B7C9,U+B7F0-B801,U+B808-B818,U+B825-B840,U+B85D-B86D,U+B8B0-B8E1,U+B8EC-B960,U+B975,U+B985,U+B989,U+B9AD,U+B9BD-B9C1,U+B9C9,U+B9CE,U+B9D1-B9D9,U+B9DD,U+B9E1,U+B9E5-B9FA,U+BA3C-BA4D,U+BA58-BA74,U+BA87,U+BAA9-BABB,U+BB36,U+BB47-BBA4,U+BBFC-BBFF,U+BC0C-BC11,U+BC15-BC18,U+BC1C-BC1D,U+BC25,U+BC2D-BC43,U+BC85,U+BC8C-BC94,U+BC97-BCC0,U+BCCD-BCD1,U+BCF8-BD05,U+BD10-BD59,U+BD81,U+BD90-BE14,U+BE4C-BE5A,U+BE60-BF18,U+BFCC-C090,U+C0AD,U+C0B6,U+C0BD-C0BF,U+C0C9-C0D8,U+C11D-C11E,U+C124-C12C}@font-face{font-family:'OBrush';src:url('../../fonts/obrush_s1.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+21-27,U+2A-2B,U+2D,U+2F,U+33-34,U+36,U+38-3E,U+40,U+43-48,U+4A-4C,U+4E-53,U+55-7E,U+FC-314E,U+FF08-FF1F}@font-face{font-family:'OBrush';src:url('../../fonts/obrush_b1.woff2') format('woff2');font-weight:400;font-display:block;unicode-range:U+28-29,U+31,U+35,U+3F,U+41-42,U+49,U+4D,U+54,U+B7,U+AC01,U+AC08,U+AC19,U+AC1C,U+AC70,U+AC78-AC80,U+AC83,U+AC8C,U+ACB9-ACBC,U+ACC4-ACE0,U+ACF3,U+ACFC,U+AD6C-AD6D,U+AD74,U+ADDC,U+AE08,U+AE38,U+AE41,U+AE4C,U+AEBC,U+AED8,U+AFC8,U+B04C,U+B0A0,U+B0A8,U+B0AC,U+B108,U+B110,U+B150,U+B178,U+B193,U+B204-B208,U+B2C8,U+B2D8,U+B2E8,U+B2F5,U+B354,U+B3D9,U+B418,U+B458,U+B4E0,U+B5A4,U+B760-B77C,U+B78D,U+B791-B798,U+B807,U+B824,U+B8E8,U+B974,U+B978-B984,U+B987,U+B9B4-B9BC,U+B9CC,U+B9D0,U+B9DE,U+B9E4,U+BA38,U+BA54,U+BABD,U+BB35,U+BB3B,U+BBF8,U+BC00,U+BC14,U+BC24,U+BC84,U+BC88,U+BC95,U+BCC4,U+BCD5,U+BCF5,U+BD09,U+BD84-BD88,U+BE5B,U+C0B0,U+C0C8,U+C120-C123,U+C148-C14B,U+C190,U+C2A4,U+C2AC,U+C2DC,U+C313,U+C544,U+C548,U+C54A,U+C554,U+C558,U+C57C,U+C5BC,U+C5C5,U+C5D4,U+C628,U+C62E,U+C654,U+C6B8,U+C6D0-C6D4,U+C704,U+C77D,U+C785,U+C791,U+C804-C808,U+C811,U+C81C,U+C84C,U+C885,U+C900,U+C911-C918,U+C9C8,U+C9F8,U+CC44,U+CCAB,U+CCB4,U+CD08,U+CD1D,U+CD98,U+CE58-CE59,U+CEEC,U+CF1C,U+CFE0,U+D070,U+D0A4,U+D0DC,U+D130,U+D138,U+D14C,U+D22C,U+D310,U+D37C,U+D399,U+D3BC,U+D3EC,U+D478,U+D480,U+D589-D5A5,U+D5CC,U+D604,U+D750-D751,U+D798}@font-face{font-family:'OBrush';src:url('../../fonts/obrush_a1.woff2') format('woff2');font-weight:400;font-display:block;unicode-range:U+20,U+2C,U+2E,U+30,U+32,U+37,U+AC00,U+AC10,U+ACB0,U+ACE7,U+AD00,U+AD81,U+ADF8,U+AE00,U+AE30,U+AE68,U+B098-B09C,U+B0B4,U+B124,U+B144,U+B294-B298,U+B2E4,U+B2EC,U+B2F4,U+B2F9,U+B300,U+B35F,U+B3C4,U+B450,U+B4DC,U+B4E4,U+B54C,U+B78C,U+B7EC,U+B85C,U+B871,U+B9AC,U+B9B0,U+B9C8,U+B9DB,U+BA39,U+BA85,U+BAA8,U+BB18-BB34,U+BB38,U+BB3C,U+BC1B,U+BC29,U+BCF4,U+BD80,U+BD89,U+BE44-BE48,U+BF51,U+C0AC,U+C0B4,U+C0BC,U+C0C1,U+C0DD-C11C,U+C12F,U+C138,U+C18C-C18D,U+C2B5,U+C2E0-C2E4,U+C2EC,U+C560,U+C5B4,U+C5C6,U+C5C8,U+C5D0,U+C5EC,U+C5F0-C5F4,U+C624,U+C640,U+C6B0,U+C6B4,U+C724,U+C73C-C74C,U+C758-C774,U+C778-C77C,U+C784,U+C788,U+C790,U+C7A5,U+C7AC,U+C801,U+C815,U+C870,U+C8FC,U+C9C0-C9C4,U+CE74-CE78,U+CEE4,U+CFE8,U+D0C0,U+D0DD,U+D1A0,U+D1B5,U+D314,U+D3B8,U+D3C9,U+D558,U+D55C-D569,U+D574,U+D654-D655,U+D68C}/*OBF*/
/* 연서당의 작은 편지들(10/3): 하람의 연서당이 내는 무료 연애 편지 세 가지.
   봉랍 체질 카드(t=type) · 실 묶기 궁합(t=match) · 햇빛 일주일(t=week).
   흐름: 하람 장면(영상 + 한 줄) → 손으로 한 번 만지기(놋쇠 도장 · 실 묶기 · 대나무 발 걷기) → 연서당 편지지에 쓴 결과 → 공유 카드.
   톤: 밝은 종이와 낮은 아침 볕(왼쪽 위에서 들어옴), 그림자는 오른쪽 아래로. 모서리 없음(완전한 원만 예외), 빛은 실제 빛만(입자 · 반짝이 없음).
   그림 · 영상 주소는 스크립트의 ART 한 곳에서 바꾼다. 원격 그림이 안 열리면 CSS 그림으로 대신한다. */
:root{--paper:#f6f0e6;--paper-2:#efe5d4;--paper-3:#e6d8c1;--ink:#2a2119;--ink-2:#6b5d4f;--ink-3:#9a8b7a;--honey:#c8955a;--sage:#7d9a7a;--wax:#b8352a;--gold:#b8862f;--slate:#5b6f78;
  --line:rgba(42,33,25,.14);--line-2:rgba(42,33,25,.24);--ac:var(--wax);
  --serif:'Noto Serif KR','Noto Serif CJK KR',serif;--sans:'Noto Sans KR','Noto Sans CJK KR',system-ui,sans-serif;--pen:'Nanum Pen Script','Noto Serif KR',serif;--brush:'OBrush','Noto Serif KR',serif;--bmj:'Song Myung','Noto Serif KR',serif;
  --woodg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='120'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .16' numOctaves='3' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .28 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
  --linen:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .03' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .34 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23l)'/%3E%3C/svg%3E")}
*{box-sizing:border-box;border-radius:0}
html,body{margin:0;background:#e9dfcd}
body{font-family:var(--sans);color:var(--ink);word-break:keep-all;overflow-wrap:break-word;display:flex;justify-content:center;-webkit-tap-highlight-color:transparent;overflow-x:hidden}
button{font-family:inherit;color:inherit;border-radius:0}
select{border-radius:0}
.ph{position:relative;width:100%;max-width:430px;min-height:100vh;overflow:hidden;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 40px);
  background-color:var(--paper);
  background-image:
    linear-gradient(118deg,rgba(255,240,206,.55) 0,rgba(255,252,245,0) 42%),
    radial-gradient(140% 70% at 100% 100%,rgba(42,33,25,.05),rgba(42,33,25,0) 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .13 0 0 0 0 .1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:100% 1400px,100% 100%,180px 180px;background-repeat:no-repeat,no-repeat,repeat}
/* 위 막대 */
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:calc(env(safe-area-inset-top,0px) + 8px) 12px 8px;background:rgba(246,240,230,.9);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid transparent;transition:border-color .3s}
.top.sc{border-bottom-color:var(--line)}
.ib{flex:none;width:44px;height:44px;border-radius:50%;border:1px solid var(--line-2);background:rgba(250,246,238,.7);display:grid;place-items:center;cursor:pointer;padding:0;color:var(--ink)}
.ib svg{width:18px;height:18px}
.ib.off .wv{display:none}.ib:not(.off) .mx{display:none}
.top b{flex:1;min-width:0;text-align:center;font-family:var(--bmj);font-size:17px;font-weight:400;letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:clip}
/* 세 가지 탭 */
.tabs{display:grid;grid-template-columns:repeat(3,1fr);margin:4px 16px 0;border-bottom:1px solid var(--line)}
.tabs button{height:48px;border:0;background:none;font-size:15px;color:var(--ink-2);cursor:pointer;position:relative;padding:0 2px;letter-spacing:-.01em}
.tabs button.on{color:var(--ink);font-weight:700}
.tabs button.on::after{content:"";position:absolute;left:16%;right:16%;bottom:-1px;height:2px;background:var(--ink)}

/* ---------- 하람 장면 ---------- */
.scene{position:relative;height:clamp(300px,92vw,392px);margin-top:12px;overflow:hidden;
  background:radial-gradient(90% 70% at 18% 8%,rgba(255,240,206,.95),rgba(255,240,206,0) 60%),linear-gradient(160deg,#f2e2c2 0,#e4cba0 50%,#cfae80 100%)}
.scene .fb{position:absolute;left:-30%;top:12%;width:130%;height:80%;transform:skewX(-24deg);opacity:.55;pointer-events:none;
  background:repeating-linear-gradient(90deg,rgba(255,248,230,.9) 0 54px,rgba(255,248,230,0) 54px 62px),repeating-linear-gradient(0deg,rgba(255,248,230,0) 0 90px,rgba(190,160,120,.4) 90px 97px);
  -webkit-mask-image:radial-gradient(ellipse 60% 55% at 42% 50%,#000 30%,transparent 72%);mask-image:radial-gradient(ellipse 60% 55% at 42% 50%,#000 30%,transparent 72%)}
.scene .hm{position:absolute;inset:-3%;background-position:center 30%;background-size:cover;background-repeat:no-repeat;transform-origin:40% 30%;animation:breathe 22s ease-in-out infinite alternate}
@keyframes breathe{from{transform:scale(1.01)}to{transform:scale(1.06) translateY(-1%)}}
.scene video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 30%;opacity:0;transition:opacity 1.1s ease}
.scene video.on{opacity:1}
.scene .warm{position:absolute;inset:0;pointer-events:none;background:linear-gradient(118deg,rgba(255,226,170,.38) 0%,rgba(255,226,170,.08) 40%,rgba(120,80,40,0) 62%,rgba(90,60,30,.12) 100%)}
.scene .shafts{position:absolute;inset:-10% -20%;pointer-events:none}
.scene .shafts i{position:absolute;top:-10%;height:130%;background:linear-gradient(180deg,rgba(255,236,196,0),rgba(255,236,196,.38) 28%,rgba(255,236,196,0) 90%);transform:skewX(-30deg);filter:blur(8px);animation:shaft 9s ease-in-out infinite}
.scene .shafts i:nth-child(1){left:10%;width:9%}
.scene .shafts i:nth-child(2){left:25%;width:4%;animation-delay:-3s;opacity:.8}
.scene .shafts i:nth-child(3){left:34%;width:12%;animation-delay:-6s;opacity:.6}
@keyframes shaft{0%,100%{opacity:.5}50%{opacity:1}}
.scene::after{content:"";position:absolute;left:0;right:0;bottom:0;height:24%;background:linear-gradient(180deg,rgba(246,240,230,0),var(--paper));pointer-events:none}
.scene.in .hm,.scene.in video{animation:sceneIn 1.2s cubic-bezier(.2,.7,.2,1) both}
.scene.in video{animation:none}
@keyframes sceneIn{from{opacity:0;transform:scale(1.08)}to{opacity:1;transform:scale(1.01)}}
/* 하람 쪽지 */
.greet{position:relative;z-index:3;margin:-50px 18px 0;padding:11px 16px 12px;background:#fcf8ef;background-image:var(--linen);
  box-shadow:10px 14px 24px -14px rgba(60,38,18,.55),inset 0 0 0 1px rgba(42,33,25,.06);transform:rotate(-1.2deg);transform-origin:20% 50%}
.greet::before{content:"";position:absolute;left:50%;top:-9px;width:46px;height:18px;margin-left:-23px;background:rgba(232,214,176,.78);box-shadow:inset 0 0 0 1px rgba(120,90,50,.08);transform:rotate(3deg)}
.greet p{margin:0;font-family:var(--bmj);font-size:19px;line-height:1.55;color:#33261b;text-wrap:balance}
.greet.in{animation:slip .9s cubic-bezier(.2,.7,.2,1) .25s both}
.greet.in p{animation:wipe 1.5s cubic-bezier(.45,.1,.3,1) .7s both}
@keyframes slip{from{opacity:0;transform:translateY(18px) rotate(-3.5deg)}to{opacity:1;transform:rotate(-1.2deg)}}
@keyframes wipe{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
/* 머리 */
.hero{padding:20px 20px 2px}
.hero small{display:block;font-family:var(--bmj);font-size:16px;color:#9a6a35}
.hero h1{margin:4px 0 0;font-family:var(--brush);font-weight:400;font-size:42px;line-height:1.15;letter-spacing:0}
.hero p{margin:10px 0 0;font-size:16px;line-height:1.7;color:var(--ink-2)}
.toys{display:inline-flex;align-items:center;gap:6px;margin-top:8px;min-height:44px;font-size:15px;font-weight:700;color:var(--ink-2);text-decoration:underline;text-underline-offset:4px;text-decoration-color:rgba(42,33,25,.3)}
/* 내 생일 줄 */
.meline{display:flex;align-items:center;gap:10px;margin:14px 16px 0;padding:10px 4px 10px 14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.meline span{font-size:14px;color:var(--ink-2);flex:none}
.meline b{flex:1;font-size:15.5px;font-weight:600;min-width:0}
.meline button{flex:none;height:44px;padding:0 12px;border:0;background:none;font-size:15px;color:var(--ink-2);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
/* 무대 */
.stage{position:relative;margin:18px 16px 0}
.hint{margin:16px 0 0;text-align:center;font-size:15px;color:var(--ink-2);line-height:1.6}
.hint em{font-style:normal;color:var(--ink);font-weight:700}
/* 생일 폼 */
.form{display:grid;gap:10px;padding:18px 16px 16px;background:#fcf8ef;background-image:var(--linen);border:1px solid var(--line);box-shadow:10px 14px 26px -18px rgba(60,38,18,.5),0 1px 0 rgba(255,255,255,.7) inset}
.form .lab{font-family:var(--bmj);font-size:18px;color:var(--ink)}
.form .lab+.lab{margin-top:6px}
.g3{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:6px}
.g2{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.form select{width:100%;height:48px;border:1px solid var(--line-2);background:#fbf8f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b5d4f' stroke-width='1.4'/%3E%3C/svg%3E") right 10px center no-repeat;color:var(--ink);font-size:16px;padding:0 24px 0 10px;font-family:inherit;appearance:none;-webkit-appearance:none}
.seg{display:flex;border:1px solid var(--line-2)}
.seg button{flex:1;height:46px;border:0;background:#fbf8f2;font-size:15.5px;cursor:pointer;color:var(--ink-2)}
.seg button+button{border-left:1px solid var(--line-2)}
.seg button.on{background:var(--ink);color:var(--paper);font-weight:700}
.sep{height:1px;background:var(--line);margin:8px 0 4px}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:52px;border:0;background:var(--ink);color:var(--paper);font-size:16px;font-weight:700;cursor:pointer;letter-spacing:-.01em;box-shadow:6px 10px 22px -12px rgba(60,38,18,.55)}
.btn:active{transform:translateY(1px)}
.btn.line{background:transparent;color:var(--ink);border:1px solid var(--ink);box-shadow:none}
.btn svg{width:18px;height:18px;flex:none}
.acts{display:grid;grid-template-columns:1.4fr 1fr;gap:8px;margin:18px 16px 0}
.cross{display:flex;align-items:center;gap:12px;margin:10px 16px 0;padding:14px 4px 14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);text-decoration:none;color:inherit;min-height:64px}
.cross .cx{flex:1;min-width:0}
.cross small{display:block;font-size:14px;color:var(--ink-2)}
.cross b{display:block;margin-top:3px;font-family:var(--bmj);font-weight:400;font-size:19px}
.cross em{display:block;margin-top:2px;font-style:normal;font-size:15px;color:var(--ink-2)}
.cross svg{flex:none;color:var(--ink-3)}
/* 연서당의 다른 편지 */
.more{margin:28px 16px 0}
.more>h3{margin:0 0 12px;font-family:var(--brush);font-weight:400;font-size:32px;line-height:1.15}
.more a{display:flex;align-items:center;gap:12px;min-height:84px;padding:8px 12px 8px 8px;margin-top:8px;text-decoration:none;color:inherit;background:#fbf7ef;background-image:var(--linen);border:1px solid var(--line);box-shadow:8px 12px 22px -16px rgba(60,38,18,.5)}
.more a:active{transform:translateY(1px)}
.more .th{flex:none;width:58px;height:68px;position:relative;overflow:hidden;background:radial-gradient(90% 70% at 20% 10%,#fff0ce,rgba(255,240,206,0) 60%),linear-gradient(160deg,#f2e2c2,#d9bb8e)}
.more .th i{position:absolute;inset:0;background:center 28%/cover no-repeat}
.more .tx{flex:1;min-width:0}
.more .tx small{display:block;font-size:14px;color:var(--ink-2)}
.more .tx b{display:block;margin-top:2px;font-family:var(--bmj);font-weight:400;font-size:19px;line-height:1.3}
.more .tx em{display:block;margin-top:2px;font-style:normal;font-size:15px;color:var(--ink-2);line-height:1.45}
.more a>svg{flex:none;color:var(--ink-3)}
.more a.ys{background:linear-gradient(118deg,rgba(255,236,196,.6),rgba(255,236,196,0) 60%),#f8f0e0}
.foot{margin:30px 20px 0;font-size:13px;line-height:1.7;color:var(--ink-3);text-align:center}
.toast{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 28px);transform:translateX(-50%);z-index:300;background:rgba(42,33,25,.92);color:var(--paper);font-size:15px;padding:12px 18px;opacity:0;transition:opacity .3s;pointer-events:none;white-space:nowrap}
.toast.on{opacity:1}
.obs{position:fixed!important;left:0!important;right:0!important;margin:0 auto;max-width:430px}
.fade-in{animation:fi .7s cubic-bezier(.2,.7,.2,1) both}
@keyframes fi{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* ---------- 오행 봉랍(그림 묶음에서 한 칸) ---------- */
.wseal{position:relative;display:block;flex:none;font-style:normal;mix-blend-mode:multiply}
.wseal::before{content:"";position:absolute;inset:9%;border-radius:50%;
  background:radial-gradient(circle at 36% 30%,rgba(255,255,255,.38),rgba(255,255,255,0) 42%),radial-gradient(circle at 64% 72%,rgba(0,0,0,.28),rgba(0,0,0,0) 62%),var(--ec,#b8352a);
  box-shadow:inset 0 0 0 3px rgba(0,0,0,.12),inset 0 0 0 7px rgba(255,255,255,.12)}
.wseal b{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--serif);font-weight:900;font-size:calc(var(--sz,100px)*.24);color:rgba(255,250,240,.92);letter-spacing:.02em}
.spOk .wseal{background:var(--sealImg) calc(var(--e)*25%) 0/500% 100% no-repeat;-webkit-mask-image:radial-gradient(closest-side,#000 88%,transparent 100%);mask-image:radial-gradient(closest-side,#000 88%,transparent 100%)}
.spOk .wseal::before,.spOk .wseal b{display:none}

/* ---------- 1. 봉랍 체질: 책상 위 봉투와 놋쇠 도장 ---------- */
.desk{position:relative;padding:66px 14px 26px;background:var(--woodg),linear-gradient(172deg,#d2ad80 0,#c09468 55%,#ad825a 100%);box-shadow:inset 0 1px 0 rgba(255,240,210,.45),0 24px 30px -22px rgba(60,38,18,.6);overflow:hidden}
.desk::before{content:"";position:absolute;left:-30%;top:-20%;width:90%;height:130%;transform:skewX(-26deg);filter:blur(10px);pointer-events:none;z-index:0;
  background:linear-gradient(90deg,rgba(255,238,200,0),rgba(255,238,200,.5) 30%,rgba(255,238,200,.32) 70%,rgba(255,238,200,0));animation:pool 10s ease-in-out infinite alternate}
@keyframes pool{from{opacity:.75}to{opacity:1}}
.env{position:relative;z-index:1;width:100%;aspect-ratio:1.42;perspective:900px;
  background:linear-gradient(160deg,#f6eedf 0,#ecdfc8 100%);box-shadow:16px 20px 24px -12px rgba(60,38,18,.5),0 2px 0 rgba(255,255,255,.6) inset;transition:opacity .5s,transform .7s cubic-bezier(.3,.6,.2,1)}
.env .fold{position:absolute;inset:0;width:100%;height:100%}
.env .flap{position:absolute;left:0;top:0;width:100%;height:62%;transform-origin:50% 0;transition:transform .8s cubic-bezier(.5,0,.2,1);z-index:3;filter:drop-shadow(0 6px 6px rgba(42,33,25,.14))}
.env .peek{position:absolute;left:9%;right:9%;top:16%;height:70%;background:#fcf8ef;border:1px solid var(--line);z-index:1;transform:translateY(0);transition:transform .9s cubic-bezier(.2,.7,.2,1) .35s;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:18px;text-align:center}
.env .peek small{font-family:var(--bmj);font-size:15px;color:var(--ink-2)}
.env .peek b{margin-top:4px;font-family:var(--bmj);font-weight:400;font-size:26px}
.env .front{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none}
.env.open .flap{transform:rotateX(178deg);opacity:0;transition:transform .8s cubic-bezier(.5,0,.2,1),opacity .35s ease .4s}
.env.open .peek{transform:translateY(-62%)}
.env.open .seal{opacity:0;transition:opacity .4s .3s}
.seal{position:absolute;left:50%;top:62%;width:176px;height:176px;margin:-88px 0 0 -88px;z-index:5;border:0;padding:0;background:none;cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;outline:none;--p:0}
.seal>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;display:block}
.seal .blob{transform-origin:100px 100px;transform:scale(calc(.93 + var(--p)*.1))}
.seal .imp{opacity:0;transition:opacity .5s .2s}
.seal.done .imp{opacity:1}
.seal .ring{transition:stroke-dashoffset .05s linear}
.seal.done .ring,.seal.done .track{opacity:0;transition:opacity .4s}
.seal .shd{opacity:.3}
.seal:focus-visible .track{stroke:var(--ink)}
.seal .wseal{position:absolute;left:50%;top:50%;width:146px;height:146px;margin:-73px 0 0 -73px;opacity:0;pointer-events:none;transform:scale(1.06)}
.spOk .seal.done .wseal{opacity:1;transform:none;transition:opacity .8s ease .35s,transform 1s cubic-bezier(.2,.7,.2,1) .35s}
.spOk .seal.done .blob,.spOk .seal.done .imp,.spOk .seal.done .shd{opacity:0;transition:opacity .8s ease .45s}
.seal .sshd{position:absolute;left:50%;top:50%;width:92px;height:40px;margin:-20px 0 0 -46px;border-radius:50%;background:radial-gradient(closest-side,rgba(40,20,10,.55),rgba(40,20,10,0));pointer-events:none;
  opacity:calc(.18 + var(--p)*.45);transform:translate(calc(14px + (1 - var(--p))*26px),calc(10px + (1 - var(--p))*16px)) scale(calc(1.5 - var(--p)*.5))}
.seal.done .sshd{opacity:0;transition:opacity .5s}
.seal .stamp{position:absolute;left:50%;top:calc(50% - 136px);width:100px;height:160px;margin-left:-50px;pointer-events:none;
  transform:translateY(calc((var(--p) - 1)*52px));filter:drop-shadow(10px 12px 8px rgba(60,38,18,.28))}
.seal .stamp svg{display:block;width:100%;height:100%}
.seal:not(.hold):not(.done) .stamp svg{animation:bob 2.6s ease-in-out infinite}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.seal.done .stamp{transform:translateY(-150px) rotate(5deg);opacity:0;transition:transform 1s cubic-bezier(.3,.6,.2,1),opacity .6s ease .35s}
.seal.done .blob{animation:squish .45s ease-out}
@keyframes squish{0%{transform:scale(1.03)}45%{transform:scale(1.08,1.01)}100%{transform:scale(1.03)}}

/* ---------- 연서당 편지지(결과) ---------- */
.letter{position:relative;container-type:inline-size;width:100%;aspect-ratio:1080/1910;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:17% 14% 24%;text-align:center;
  background:radial-gradient(120% 60% at 10% 0%,rgba(255,240,206,.55),rgba(255,240,206,0) 60%),linear-gradient(172deg,#fcf8ef,#f3eadb);
  box-shadow:inset 0 0 0 16px #fbf6ec,inset 0 0 0 17.5px rgba(125,154,122,.55),inset 0 0 0 22px #fbf6ec,inset 0 0 0 23px rgba(125,154,122,.3),16px 24px 36px -20px rgba(60,38,18,.55)}
.ppOk .letter{background:var(--paperImg) center/100% 100% no-repeat;box-shadow:16px 24px 36px -20px rgba(60,38,18,.55)}
.letter::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(118deg,rgba(255,238,200,.32),rgba(255,238,200,0) 45%)}
.letter>*{position:relative;z-index:1}
.letter .wseal.big{width:34cqw;height:34cqw;--sz:34cqw;margin-top:3.6cqw}
.letter .lsl{margin-top:1.4cqw;font-family:var(--bmj);font-size:max(15px,4.6cqw);line-height:1.45;color:var(--ink-2)}
.letter h2{margin:3.6cqw 0 0;font-family:var(--bmj);font-weight:400;font-size:9.6cqw;line-height:1.3;letter-spacing:-.01em}
.letter h2.v{font-size:8.4cqw;line-height:1.42}
.letter .gy{margin:2cqw 0 0;font-family:var(--bmj);font-size:max(16px,5.4cqw);color:var(--ac)}
.letter .pen{align-self:stretch;margin:4.6cqw 0 0;text-align:left;font-family:var(--pen);font-size:max(24px,7.8cqw);line-height:1.26;color:#33261b}
.letter .pen span{display:block}
.letter .pen span+span{margin-top:1.2cqw}
.letter .sign{align-self:flex-end;margin-top:4cqw;font-family:var(--pen);font-size:max(22px,7cqw);color:var(--ink-2)}
.letter .hr{width:16cqw;height:1px;background:rgba(42,33,25,.2);margin:4cqw auto 0}
.letter.rise .pen span{animation:wipe 1.3s cubic-bezier(.45,.1,.3,1) both;animation-delay:calc(.9s + var(--i,0)*.75s)}
.letter.rise .sign{animation:fi .8s ease both;animation-delay:calc(1.4s + var(--n,1)*.75s)}
.letter.rise .wseal.big{animation:sealIn 1s cubic-bezier(.2,.7,.2,1) .45s both}
@keyframes sealIn{from{opacity:0;transform:scale(1.25) rotate(-8deg)}to{opacity:1;transform:none}}
/* 두 봉랍과 매듭 */
.pair{display:flex;align-items:flex-start;justify-content:center;margin-top:4cqw}
.pair .ps{display:flex;flex-direction:column;align-items:center;width:27cqw}
.pair .wseal{width:27cqw;height:27cqw;--sz:27cqw}
.pair .ps em{margin-top:1cqw;font-style:normal;font-family:var(--bmj);font-size:max(14px,4.4cqw);line-height:1.35;text-align:center;color:var(--ink-2)}
.pair svg{flex:none;width:24cqw;height:11.5cqw;margin:7.75cqw -3cqw 0;position:relative;z-index:1}
.band{display:flex;flex-direction:column;align-items:center;margin:3.4cqw 0 0}
.band .ks{display:flex;gap:2.6cqw}
.band .ks i{width:3.6cqw;height:3.6cqw;border-radius:50%;border:1.5px solid var(--wax);background:transparent}
.band .ks i.on{background:radial-gradient(circle at 35% 30%,#d4574a,#b8352a 60%,#8e2219);box-shadow:0 2px 4px rgba(142,34,25,.35)}
.band b{margin-top:1.8cqw;font-family:var(--bmj);font-weight:400;font-size:max(17px,5.8cqw);color:var(--wax)}
/* 이틀(편지 안) */
.lday{align-self:stretch;display:grid;grid-template-columns:27cqw 1fr;gap:3.4cqw;margin-top:3.6cqw;padding-top:3.6cqw;border-top:1px solid rgba(42,33,25,.14);text-align:left}
.lday .dd small{display:block;font-family:var(--bmj);font-size:max(14px,4.4cqw);color:#9a6a1f}
.lday .dd b{display:block;margin-top:.8cqw;font-family:var(--serif);font-size:9cqw;font-weight:900;line-height:1.05}
.lday .dd em{display:block;margin-top:.8cqw;font-style:normal;font-size:max(14px,4.2cqw);color:var(--ink-2)}
.lday .tt small{display:block;font-size:max(14px,4.2cqw);color:var(--ink-2)}
.lday .tt b{display:block;margin-top:.6cqw;font-size:max(16px,5.4cqw);font-weight:800;letter-spacing:-.01em}
.lday .tt p{margin:1.4cqw 0 0;font-family:var(--bmj);font-size:max(15px,4.6cqw);line-height:1.6;color:#4a3d31}
/* 편지 뒷장(자세한 풀이) */
.sheet{position:relative;margin-top:14px;padding:20px 18px 18px;background:#fbf7ef;background-image:var(--linen);border:1px solid var(--line);box-shadow:10px 16px 28px -20px rgba(60,38,18,.5)}
.sheet .sk{margin:0;font-family:var(--bmj);font-weight:400;font-size:22px;line-height:1.35;color:var(--ink)}
.sheet dl{margin:14px 0 0;display:grid;gap:14px}
.sheet dt{font-family:var(--bmj);font-size:18px;color:var(--ink);display:flex;align-items:center;gap:9px}
.sheet dt::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--ac);flex:none}
.sheet dd{margin:5px 0 0;font-size:16px;line-height:1.72}
.sheet dd.suit{display:flex;gap:12px;align-items:flex-start}
.sheet dd.suit .wseal{width:52px;height:52px;--sz:52px;margin-top:2px}
.sheet .lead{margin:12px 0 0;font-family:var(--bmj);font-size:18px;line-height:1.7}
.sheet .ref{margin:18px 0 0;padding-top:16px;border-top:1px solid var(--line);font-size:16px;line-height:1.75;color:var(--ink)}
.basis{margin:14px 0 0;font-size:14px;line-height:1.65;color:var(--ink-2)}
.notes{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:0}
.notes li{display:grid;grid-template-columns:26px 1fr;gap:8px;padding:12px 0;border-top:1px solid var(--line)}
.notes li:first-child{border-top:0}
.notes li>i{display:block;width:22px;height:3px;margin-top:.8em;background:var(--tc,#2a2119);transform:rotate(-8deg)}
.notes b{display:block;font-family:var(--bmj);font-weight:400;font-size:18px;line-height:1.4;color:var(--ink)}
.notes p{margin:4px 0 0;font-size:16px;line-height:1.7}
.rest{margin:14px 0 0;padding:12px 14px;border:1px solid var(--line);font-size:15.5px;line-height:1.7;color:var(--ink-2);background:rgba(255,252,246,.6)}
.rest b{color:var(--ink)}
.rise{animation:rise .9s cubic-bezier(.2,.7,.2,1) both}
@keyframes rise{from{opacity:0;transform:translateY(40px) rotate(-1.2deg)}to{opacity:1;transform:none}}

/* ---------- 2. 실 묶기: 리넨 위 두 봉투 ---------- */
.loom{position:relative;width:100%;aspect-ratio:1.36;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none;
  background:var(--linen),linear-gradient(175deg,#f8f1e4,#ecdfc9);box-shadow:inset 0 0 0 1px var(--line),12px 18px 28px -20px rgba(60,38,18,.55)}
.loom::before{content:"";position:absolute;left:-20%;top:-30%;width:70%;height:160%;transform:skewX(-28deg);filter:blur(12px);pointer-events:none;
  background:linear-gradient(90deg,rgba(255,238,200,0),rgba(255,238,200,.75) 35%,rgba(255,238,200,.5) 70%,rgba(255,238,200,0));animation:pool 9s ease-in-out infinite alternate}
.loom svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.loom .who{position:absolute;top:10px;font-family:var(--bmj);font-size:17px;color:var(--ink);z-index:1}
.loom .who.l{left:14px}.loom .who.r{right:14px;text-align:right}
.loom .who small{display:block;font-family:var(--sans);font-size:14px;color:var(--ink-2);margin-top:1px}
.loom .h{cursor:grab}
.loom.tied .h{pointer-events:none}
#tgt{transition:opacity .3s}.loom.tied #tgt{opacity:0}
#tgt{animation:tg 2.2s ease-in-out infinite;transform-box:fill-box;transform-origin:50% 50%}
@keyframes tg{0%,100%{transform:scale(1);opacity:.7}50%{transform:scale(1.12);opacity:1}}
.knot{opacity:0;transform-origin:50% 50%;transform-box:fill-box}
.loom.tied .knot{opacity:1;animation:knot .8s cubic-bezier(.2,.8,.2,1) both}
@keyframes knot{0%{opacity:0;transform:scale(.4) rotate(-30deg)}60%{opacity:1;transform:scale(1.12) rotate(4deg)}100%{transform:none}}
.knot path,.knot ellipse{stroke-dasharray:140;stroke-dashoffset:140}
.loom.tied .knot path,.loom.tied .knot ellipse{animation:draw .7s ease-out .1s forwards}
@keyframes draw{to{stroke-dashoffset:0}}
.loom .ev{transition:transform .9s cubic-bezier(.3,.6,.2,1)}
.pinfo{display:grid;gap:10px}

/* ---------- 3. 햇빛 일주일: 창, 대나무 발, 일곱 장의 날 ---------- */
.win{position:relative;padding:16px 14px 14px;background:var(--woodg),linear-gradient(175deg,#c7a079,#a77d55);box-shadow:inset 0 1px 0 rgba(255,240,210,.4),0 22px 32px -22px rgba(60,38,18,.6)}
.sill{position:relative;padding:14px 10px 12px;background:radial-gradient(90% 80% at 10% 0%,rgba(255,240,206,.5),rgba(255,240,206,0) 60%),linear-gradient(180deg,#f5ecdb,#ebdec6);box-shadow:inset 0 2px 6px rgba(60,38,18,.18)}
.strip{position:relative;display:grid;grid-template-columns:repeat(7,1fr);gap:5px;isolation:isolate}
.strip .c{position:relative;z-index:1;height:126px;display:flex;flex-direction:column;align-items:center;padding-top:12px;background:#fbf7ef;box-shadow:3px 5px 8px -4px rgba(60,38,18,.35),inset 0 0 0 1px rgba(42,33,25,.08);transition:opacity .8s,transform .8s}
.strip .c small{font-size:14px;color:var(--ink-2);font-weight:700}
.strip.done .c.best small{color:var(--gold)}
.strip .c b{margin-top:6px;font-family:var(--serif);font-size:20px;font-weight:900;line-height:1}
.strip .c em{margin-top:5px;font-style:normal;font-size:14px;line-height:1;color:var(--ink-2);height:15px;white-space:nowrap}
.strip .c .bar{position:absolute;left:50%;bottom:10px;width:3px;margin-left:-1.5px;height:0;background:var(--ink-2);opacity:.5;transition:height .9s cubic-bezier(.2,.7,.2,1)}
.strip.done .c{opacity:.6;filter:saturate(.85)}
.strip.done .c.best{opacity:1;filter:none;transform:translateY(-4px);background:radial-gradient(90% 60% at 50% 38%,#fffaea,#fcf0d2 60%,#f7e4bb);box-shadow:4px 8px 12px -6px rgba(60,38,18,.35),0 0 22px 2px rgba(255,226,170,.55),inset 0 0 0 1px rgba(184,134,47,.35)}
.strip.done .c.best .bar{background:var(--gold);opacity:1}
.strip .dim{position:absolute;inset:-6px;background:rgba(60,38,18,.16);z-index:2;transition:opacity 1.2s;pointer-events:none}
.strip.lit .dim{opacity:.45}
.strip.done .dim{opacity:0}
.sun{position:absolute;top:-30%;bottom:-30%;width:34%;left:-40%;z-index:3;pointer-events:none;mix-blend-mode:screen;transform:skewX(-14deg);opacity:0;
  background:linear-gradient(90deg,rgba(255,214,150,0),rgba(255,226,170,.8) 30%,rgba(255,236,196,.92) 50%,rgba(255,226,170,.8) 70%,rgba(255,214,150,0))}
.strip.sweep .sun{animation:sweep 2.2s cubic-bezier(.45,.05,.35,1) forwards}
@keyframes sweep{0%{left:-40%;opacity:0}12%{opacity:1}85%{opacity:1}100%{left:110%;opacity:0}}
.pool{position:absolute;top:-12%;bottom:-12%;z-index:0;pointer-events:none;mix-blend-mode:screen;opacity:0;transform:skewX(-10deg) scaleX(.6);transition:opacity 1.1s ease,transform 1.3s cubic-bezier(.2,.7,.2,1);
  background:radial-gradient(60% 55% at 50% 45%,rgba(255,236,196,.85),rgba(255,222,160,.5) 55%,rgba(255,214,150,0) 100%)}
.pool::before,.pool::after{content:"";position:absolute;background:rgba(120,84,40,.2);filter:blur(2px)}
.pool::before{top:8%;bottom:8%;left:50%;width:3px}
.pool::after{left:12%;right:12%;top:46%;height:3px}
.strip.done .pool{opacity:1;transform:skewX(-10deg) scaleX(1)}
/* 대나무 발 */
.rail{position:absolute;left:8px;right:8px;top:8px;height:10px;z-index:8;background:var(--woodg),linear-gradient(180deg,#8a6444,#6d4c30);box-shadow:0 3px 5px -1px rgba(60,38,18,.4)}
.shade{position:absolute;left:14px;right:14px;top:16px;bottom:14px;z-index:6;touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;outline:none;
  clip-path:inset(0 0 calc(var(--k,0)*100%) 0);
  background:
   linear-gradient(118deg,rgba(255,238,200,.42),rgba(255,238,200,0) 55%),
   linear-gradient(90deg,transparent calc(22% - 1px),rgba(96,60,32,.55) calc(22% - 1px) calc(22% + 1px),transparent calc(22% + 1px) calc(78% - 1px),rgba(96,60,32,.55) calc(78% - 1px) calc(78% + 1px),transparent calc(78% + 1px)),
   repeating-linear-gradient(180deg,#e2c995 0 3px,#d4b67d 3px 5px,#b8955f 5px 6px,rgba(255,240,206,.55) 6px 7px),
   #d8bd88;
  box-shadow:inset 0 0 0 1px rgba(96,60,32,.25)}
.shade:focus-visible{box-shadow:inset 0 0 0 2px var(--ink)}
.shade .tag{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-2deg);display:flex;align-items:center;gap:6px;padding:9px 14px;background:#fcf8ef;box-shadow:6px 10px 16px -8px rgba(60,38,18,.55);font-size:16px;font-weight:700;color:var(--ink);white-space:nowrap}
.shade .tag svg{color:var(--ink-2)}
.shade .tag::before{content:"";position:absolute;left:50%;top:-30px;width:1px;height:30px;background:rgba(96,60,32,.7)}
.roll{position:absolute;left:10px;right:10px;height:14px;z-index:7;pointer-events:none;top:calc(16px + (100% - 30px)*(1 - var(--k,0)) - 7px);
  background:linear-gradient(180deg,#f0dcae 0,#d2b47c 35%,#a9844f 75%,#8a6a3e 100%);box-shadow:4px 6px 8px -3px rgba(60,38,18,.45)}
.win.up .roll{top:12px}
.win.up .shade{visibility:hidden}
.win.up .rail{z-index:6}
@media (prefers-reduced-motion:reduce){
  .strip.sweep .sun{animation-duration:.01s}.rise,.fade-in,.greet.in,.greet.in p,.letter.rise .pen span,.letter.rise .sign,.letter.rise .wseal.big,.scene.in .hm{animation:none}
  .scene .hm,.scene .shafts i,.desk::before,.loom::before,#tgt,.seal .stamp svg{animation:none!important}
}
