/* 12월 트리 화면: 공개 전 화면(holding)과 같은 밤하늘·멜번 분위기. 큰 트리 하나에 모든 언어 장식 */
body.tp{--ink:#f6f2e9;--muted:rgba(246,242,233,.72);--gold:#e6c38b;--deep:#0e1c26;margin:0;background:var(--deep);color:var(--ink);font-family:'DM Sans','Noto Sans KR','Noto Sans Thai','Noto Sans SC','Noto Sans JP',sans-serif;word-break:keep-all}
body.tp *,body.tp *::before,body.tp *::after{box-sizing:border-box}
body.tp:lang(ja),body.tp:lang(zh),body.tp:lang(th){word-break:normal;line-break:strict}
.tp main.tp-main{max-width:none;margin:0;padding:0}
.tp a{color:inherit}

/* 첫 화면 */
.tp-hero{position:relative;isolation:isolate;min-height:100svh;display:flex;flex-direction:column;overflow:hidden}
.tp-bg{position:absolute;inset:0;z-index:-3;overflow:hidden;background:#123541 url('/assets/layered-garden/assets/base.webp?v=20261103-edge-clear4') center/cover no-repeat}   /* 정원 고정 바탕(가장자리 장식은 assets/garden.js) */
.tp-hero::after{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,rgba(10,18,30,.82) 0%,rgba(10,18,30,.35) 30%,rgba(10,18,30,.15) 55%,rgba(10,18,30,.85) 100%)}
.tp-sky{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
#tpFx{position:absolute;inset:0;width:100%;height:100%}
.tp-sky .fly{position:absolute;left:0;top:0;opacity:0}
.tp-sky .f1{width:clamp(150px,21vw,270px);animation:tpFly 22s linear 3s infinite}
.tp-sky .f2{width:clamp(90px,12vw,160px);animation:tpFlyB 28s linear 14s infinite}
.tp-sky .fly .trail{position:absolute;right:92%;top:38%;width:46%;height:3px;border-radius:3px;background:linear-gradient(90deg,transparent,rgba(255,226,160,.8));filter:blur(1px)}
@keyframes tpFlyB{0%{opacity:0;transform:translate(110vw,56vh) scaleX(-1)}5%{opacity:.6}38%{opacity:.6;transform:translate(-25vw,50vh) scaleX(-1)}42%,100%{opacity:0;transform:translate(-30vw,49vh) scaleX(-1)}}
.tp-sky .fly img{display:block;width:100%;height:auto;filter:drop-shadow(0 0 6px rgba(255,214,140,.55))}
@keyframes tpFly{0%{opacity:0;transform:translate(-30vw,46vh) rotate(-5deg)}5%{opacity:.95}45%{opacity:.95;transform:translate(110vw,36vh) rotate(-3deg)}50%,100%{opacity:0;transform:translate(120vw,35vh)}}
.tp-sky .shoot{position:absolute;width:110px;height:2px;border-radius:2px;background:linear-gradient(90deg,rgba(255,255,255,0),#fff);opacity:0;transform:rotate(-18deg)}
.tp-sky .s1{left:64%;top:7%;animation:tpShoot 12s ease-out 5s infinite}.tp-sky .s2{left:16%;top:12%;animation:tpShoot 16s ease-out 11s infinite}
@keyframes tpShoot{0%,92%{opacity:0;transform:translate(0,0) rotate(-18deg)}94%{opacity:1}100%{opacity:0;transform:translate(-160px,52px) rotate(-18deg)}}

.tp-top{position:relative;z-index:60;width:100%;max-width:none;height:auto;margin:0;flex-wrap:nowrap;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:calc(10px + env(safe-area-inset-top)) 14px 0}
.tp-brand{display:flex;align-items:center;gap:8px;text-decoration:none;font:600 14px/1.05 Georgia,serif}
.tp-brand small{display:block;font:700 8px/1.8 'DM Sans',sans-serif;letter-spacing:.2em;opacity:.8}
.tp-brand small.aa{display:block;font:700 6.5px/1.5 'DM Sans',sans-serif;letter-spacing:.16em;opacity:.6;margin-top:-1px}
.tp-brand svg{width:26px;height:26px}.mcm-brand-mark{display:block;flex:0 0 auto;width:32px;height:auto;aspect-ratio:96/112;object-fit:contain}
.tp .lang{position:relative}
.tp .lang{align-self:center}
.tp .lang summary{list-style:none;display:inline-flex;align-items:center;gap:3px;height:34px;min-height:34px;box-sizing:border-box;min-width:44px;padding:0 8px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.tp .lang summary::-webkit-details-marker{display:none}
.tp .lang summary svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tp .lang summary .chev{width:11px;height:11px}
.tp .lang[open] summary .chev{transform:rotate(180deg)}
.tp .lang-menu{position:absolute;right:0;top:calc(100% + 4px);width:132px;padding:4px;border-radius:12px;background:#13222d;border:1px solid rgba(255,255,255,.18);box-shadow:0 12px 28px rgba(0,0,0,.5)}
.tp .lang-menu a{display:flex;align-items:center;min-height:40px;padding:0 10px;border-radius:8px;text-decoration:none;font-size:14px;color:var(--ink)}
.tp .lang-menu a[aria-current]{background:rgba(255,255,255,.1);font-weight:700}

.tp-copy{text-align:center;padding:8px 20px 0;width:100%;max-width:640px;margin:0 auto;min-width:0}
.tp-eyebrow{margin:0;font-size:11px;font-weight:800;letter-spacing:.14em;color:var(--gold);text-transform:uppercase}
body.tp[data-lang] h1,.tp h1{font-family:'DM Sans','Noto Sans KR','Noto Sans Thai','Noto Sans SC','Noto Sans JP',sans-serif;max-width:none;margin:6px auto 0;font-size:clamp(24px,6.6vw,40px);line-height:1.2;letter-spacing:-.03em;font-weight:800;text-wrap:balance;text-shadow:0 2px 16px rgba(0,0,0,.4)}
.tp:lang(ja) h1,.tp:lang(zh) h1,.tp:lang(th) h1{overflow-wrap:anywhere;font-size:clamp(22px,6.2vw,40px)}
.tp-sub{margin:6px auto 0;font-size:13.5px;line-height:1.55;color:var(--muted);text-wrap:balance}

/* 트리 무대: 화면 대부분을 트리가 차지 */
.tp-stage{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;padding:6px 0 0}
.tp .tree-scroll{position:relative;inset:auto;width:100%;height:max(340px,min(calc(100svh - 330px),calc(100vw * 1.5)));overflow:auto;overscroll-behavior:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.tp .tree-scroll::-webkit-scrollbar{display:none}
.tp .tree-world{position:relative;margin:0 auto;aspect-ratio:auto}
.tp .main-tree{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 30px rgba(0,0,0,.55))}
.tp #hanging{position:absolute;inset:0}
.tp .hanging-ornament{position:absolute;width:var(--size);aspect-ratio:1;transform:translate(-50%,-14%);padding:0;border:0;background:none;cursor:pointer;transition:opacity .25s,filter .25s;filter:drop-shadow(0 2px 2px rgba(0,0,0,.45))}
.tp .hanging-ornament img{width:100%;height:100%;object-fit:contain;pointer-events:none}
.tp .hanging-ornament::before{content:"";position:absolute;left:50%;top:-30%;width:1px;height:34%;background:rgba(240,215,160,.55)}
.tp .hanging-ornament.new{animation:tpTwinkle 2.4s ease-in-out var(--d,0s) infinite}
@keyframes tpTwinkle{0%,100%{filter:drop-shadow(0 2px 2px rgba(0,0,0,.45))}50%{filter:drop-shadow(0 0 8px rgba(255,226,150,.95))}}
.tp #hanging.hl .hanging-ornament:not(.on){opacity:.18;filter:grayscale(.6)}
.tp #hanging.hl .hanging-ornament.on{filter:drop-shadow(0 0 6px rgba(255,226,150,.9))}
.tp .hanging-ornament:focus-visible{outline:2px solid #ffe2a8;outline-offset:2px;border-radius:50%}

.tp-tools{display:flex;align-items:center;gap:2px;margin-top:6px;padding:3px;border-radius:999px;background:rgba(14,28,38,.6);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.tp-tools button{min-width:40px;min-height:36px;padding:0 10px;border:0;border-radius:999px;background:none;color:var(--ink);font:700 12px/1 inherit;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center}
.tp-tools button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.tp-tools button[aria-pressed=true]{background:var(--gold);color:#22170a}
.tp-tools #zoomLabel{min-width:42px;text-align:center;font-size:11px;color:var(--muted)}

/* '내 장식 고르기': 트리 화면 안에서만 아래에 붙어 따라오고, 화면을 지나면 제자리에 멈춘다.
   (예전엔 화면 전체에 고정돼 안내 문구·경품 상자 글씨를 가렸다, 2026-12-01) */
.tp-cta{position:sticky;bottom:0;z-index:70;display:flex;justify-content:center;padding:12px 16px calc(14px + env(safe-area-inset-bottom));pointer-events:none}
.tp-go{pointer-events:auto}
.tp-go:active{transform:scale(.97)}
body.tp.modal-open .tp-go,body.tp:has(dialog[open]) .tp-go{opacity:0;pointer-events:none}
.tp-go{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:240px;min-height:54px;padding:0 28px;border:0;border-radius:999px;background:linear-gradient(180deg,#ffe7ad,#e2b25e 55%,#c8913f);color:#2a1a05;font:800 17px/1 inherit;cursor:pointer;box-shadow:0 10px 30px rgba(226,178,94,.4),inset 0 1px 0 rgba(255,255,255,.7);white-space:nowrap}
.tp-go svg{width:19px;height:19px;fill:#2a1a05}
.tp-hint{margin:8px 16px 0;max-width:340px;font-size:12px;line-height:1.5;color:var(--muted);text-align:center;text-wrap:balance}

/* 경품(빅토리아) 안내 */
.tp .prize-card{max-width:640px;margin:16px auto 0;padding:16px 18px;border-radius:18px;background:rgba(230,195,139,.1);border:1px dashed rgba(230,195,139,.5)}
.tp .prize-card h2{margin:0 0 6px;font-size:16px}.tp .prize-card p{margin:0;font-size:14px;color:var(--muted)}

/* 메시지 목록 */
.tp-list{max-width:980px;margin:0 auto;padding:28px 16px 8px}
.tp-list-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 16px}
.tp-list h2{margin:0;font-size:20px;letter-spacing:-.02em}
.tp-counts{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px;color:var(--muted)}
.tp-counts b{color:var(--ink)}
.tp-counts .lt{color:var(--gold)}
.tp-search{display:flex;align-items:center;gap:8px;margin:14px 0 12px;padding:0 14px;min-height:46px;border-radius:14px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14)}
.tp-search svg{width:17px;height:17px;flex:none;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round}
.tp-search input{flex:1;min-width:0;border:0;background:none;color:var(--ink);font:inherit;font-size:16px;outline:none}
.tp .message-list{display:grid;grid-template-columns:1fr;gap:8px;max-height:none;overflow:visible;padding:0}
@media(min-width:760px){.tp .message-list{grid-template-columns:repeat(3,1fr)}}
.tp .wish-card{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:12px;width:100%;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:var(--ink);text-align:left;cursor:pointer;min-height:72px}
.tp .wish-card img{width:40px;height:44px;object-fit:contain}
.tp .wish-card strong{font-size:13px}
.tp .wish-card p{margin:3px 0 0;font-size:13px;color:var(--muted);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.tp .wish-card .wish-likes{display:inline-flex;align-items:center;gap:3px;font-size:12px;color:var(--gold)}
.tp .wish-card .wish-likes svg{width:14px;height:14px;fill:currentColor}
.tp-more{display:block;margin:14px auto 0;min-height:44px;padding:0 22px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:none;color:var(--ink);font:700 14px/1 inherit;cursor:pointer}
.tp #emptySearch{text-align:center;color:var(--muted)}

/* 스폰서·FAQ·푸터 */
.tp .spon{max-width:640px;margin:22px auto 0;display:flex;align-items:center;gap:10px;padding:8px 8px 8px 10px;border-radius:16px;border:1px dashed rgba(230,195,139,.55);background:rgba(255,255,255,.04);text-decoration:none}
.tp .spon-ic{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:rgba(230,195,139,.16)}
.tp .spon-ic svg{width:15px;height:15px;fill:var(--gold)}
.tp .spon-t{flex:1;min-width:0;display:flex;flex-direction:column}
.tp .spon-t b{font-size:13px}.tp .spon-t small{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp .spon-go{flex:none;min-height:32px;padding:0 14px;display:inline-flex;align-items:center;border-radius:999px;background:var(--gold);color:#1d1406;font-size:12px;font-weight:800}
.tp .spon,.tp-faq,.tp-foot{margin-left:16px;margin-right:16px}
@media(min-width:680px){.tp .spon,.tp-faq,.tp-foot{margin-left:auto;margin-right:auto}}
.tp-faq{max-width:640px;margin-top:18px}
.tp-faq summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700;color:var(--muted)}
.tp-faq h3{margin:14px 0 4px;font-size:14px}.tp-faq p{margin:0;font-size:13px;color:var(--muted);line-height:1.6}
.tp-foot{max-width:640px;display:flex;flex-wrap:wrap;justify-content:center;gap:10px 8px;padding:22px 0 calc(28px + env(safe-area-inset-bottom));font-size:12px;color:var(--muted)}
.tp-foot a{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 12px 0 10px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);color:var(--ink,#fff8ea);font-size:11.5px;font-weight:700;text-decoration:none;white-space:nowrap}.tp-foot a:hover,.tp-foot a:focus-visible{background:rgba(243,200,106,.14);border-color:rgba(243,200,106,.45)}.tp-foot a svg{width:13px;height:13px;flex:none;fill:none;stroke:var(--gold);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.tp-foot a .ar{width:9px;height:9px;opacity:.7;stroke:currentColor}
.tp-foot span{flex-basis:100%;text-align:center;font-size:10.5px;letter-spacing:.06em}
/* 만든 곳 표시: 알약 버튼이 아닌 작은 밑줄 글씨 링크 */
.tp-foot span a,.tp-aa a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;border:0;border-radius:0;background:none;color:inherit;font-size:inherit;font-weight:600;text-decoration:underline;text-decoration-color:rgba(246,242,233,.35);text-underline-offset:3px;backdrop-filter:none;-webkit-backdrop-filter:none}
.tp-foot span a{display:inline;min-height:0;padding:0}
.tp-foot span a:hover,.tp-foot span a:focus-visible,.tp-aa a:hover,.tp-aa a:focus-visible{background:none;color:var(--gold);text-decoration-color:currentColor}
.tp-aa{flex-basis:100%;display:flex;flex-wrap:wrap;justify-content:center;gap:0 12px;margin-top:-10px;padding:0;border:0;font-size:10.5px;letter-spacing:.04em}

/* 관리자 미리보기 막대 */
.tp .adminbar{position:sticky;top:0;z-index:90;display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:6px 10px;background:#1d140a;color:#ffe2a8;font-size:12px}
.tp .adminbar a{padding:4px 8px;border-radius:999px;border:1px solid rgba(255,226,168,.35);color:#ffe2a8;text-decoration:none}
.tp .adminbar a[aria-current]{background:#ffe2a8;color:#1d140a}

body.tp[data-lang] h1{font-size:clamp(24px,6.6vw,40px);line-height:1.2}
body.tp[data-lang=ja] h1,body.tp[data-lang=zh] h1,body.tp[data-lang=th] h1{font-size:clamp(22px,6.2vw,40px)}
@media(min-width:900px){
  .tp .tree-scroll{height:max(420px,calc(100vh - 320px))}
  .tp h1{font-size:40px}
}
@media(prefers-reduced-motion:reduce){.tp *{animation:none!important}}
/* 위치 권한 단계별 안내 플레이어 */
.gp{display:grid;gap:10px;justify-items:center;min-width:0}
.gp-ver{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.gp-ver button{min-height:36px;padding:0 14px;border-radius:999px;background:#efeadd;color:var(--ink);font-size:12px;font-weight:700}
.gp-ver button[aria-pressed=true]{background:var(--ink);color:var(--paper)}
.gp-screen{position:relative;width:min(100%,250px);border-radius:28px;overflow:hidden;border:6px solid #1f2b26;background:#111;box-shadow:0 14px 30px -18px rgba(0,0,0,.55)}
.gp-screen img{display:block;width:100%;height:100%;object-fit:cover}
.gp-hot{position:absolute;width:16%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;border:3px solid #ff5a36;background:rgba(255,90,54,.16);pointer-events:none}
.gp-hot::after{content:"";position:absolute;inset:-3px;border-radius:50%;border:3px solid #ff5a36;opacity:0}
.gp-hot.go{animation:gpIn .45s cubic-bezier(.2,.9,.3,1.3) both}
.gp-hot.go::after{animation:gpRipple 1.4s ease-out .3s infinite}
.gp-swipe{position:absolute;width:4px;transform:translateX(-50%);border-radius:4px;background:linear-gradient(to top,rgba(255,90,54,.85),rgba(255,90,54,0));pointer-events:none}
.gp-swipe::after{content:"";position:absolute;left:50%;width:34px;height:34px;margin-left:-17px;border-radius:50%;border:3px solid #ff5a36;background:rgba(255,90,54,.2);bottom:-17px}
.gp-swipe.go::after{animation:gpSwipe 1.5s ease-in-out infinite}
.gp-done{position:absolute;left:50%;bottom:9%;transform:translateX(-50%);display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#2f8f5b;box-shadow:0 6px 16px rgba(0,0,0,.35)}
.gp-done svg{width:24px;height:24px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.gp-hot[hidden],.gp-swipe[hidden],.gp-done[hidden]{display:none}
.gp-bar{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}
.gp-nav,.gp-play{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#efeadd;color:var(--ink)}
.gp-nav svg,.gp-play svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.gp-play svg{fill:currentColor}
.gp-count{min-width:40px;text-align:center;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.gp-dots{display:flex;gap:0}
.gp-dot{width:18px;height:28px;padding:0;background:none;display:grid;place-items:center}
.gp-dot::before{content:"";width:7px;height:7px;border-radius:50%;background:#cfc8b6;transition:background .2s,transform .2s}
.gp-dot.on::before{background:#ff5a36;transform:scale(1.3)}
.gps-steps li{border-radius:10px;padding:4px 8px;margin-left:-8px;transition:background .2s}
.gps-steps li.on{background:rgba(255,90,54,.12);box-shadow:inset 3px 0 0 #ff5a36;font-weight:700}
@keyframes gpIn{from{transform:translate(-50%,-50%) scale(.3);opacity:0}to{transform:translate(-50%,-50%) scale(1);opacity:1}}
@keyframes gpRipple{0%{transform:scale(1);opacity:.8}100%{transform:scale(1.9);opacity:0}}
@keyframes gpSwipe{0%{bottom:-17px;opacity:0}15%{opacity:1}80%{bottom:calc(100% - 17px);opacity:1}100%{bottom:calc(100% - 17px);opacity:0}}
@media(prefers-reduced-motion:reduce){.gp-hot.go,.gp-hot.go::after,.gp-swipe.go::after{animation:none}}
/* 창(장식 고르기·메시지)은 밝은 종이 배경이라 글씨 색을 어둡게 되돌린다(페이지는 어두운 테마) */
body.tp dialog{--ink:#20372f;--muted:#6a7469;color:var(--ink)}
.gp-play{position:absolute;top:8px;right:8px;width:36px;height:36px;background:rgba(20,28,24,.62);color:#fff;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.gps-steps li.gp-link{cursor:pointer}

/* 로그인 단계(장식 고르기 창의 첫 화면). 위쪽 창 제목·영문 머리글은 숨기고 이 단계 제목 하나만 보인다(2026-12-01) */
#picker:has(#stepLogin:not([hidden])) .dialog-head .eyebrow,#picker:has(#stepLogin:not([hidden])) .dialog-head h2{display:none}
#picker:has(#stepLogin:not([hidden])) .dialog-head{min-height:0;padding-bottom:0;border-bottom:0}
.login-step{text-align:center;padding:4px 8px 8px}
.login-art{width:96px;height:96px;margin:0 auto 12px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(closest-side,rgba(230,195,139,.35),rgba(230,195,139,0))}
.login-art img{width:72px;height:72px;object-fit:contain;filter:drop-shadow(0 6px 10px rgba(60,40,10,.25))}
.login-step h2{margin:0 0 8px;font-size:22px;line-height:1.3;text-wrap:balance}
.login-desc{margin:0 auto 20px;max-width:320px;font-size:14px;line-height:1.6;color:var(--muted);text-wrap:pretty}
:lang(ko) .login-step h2,:lang(ko) .login-desc{word-break:keep-all;overflow-wrap:anywhere}
.login-step .login-btns{display:grid;gap:10px;margin:0 auto;max-width:340px}
.login-step .btn-kakao,.login-step .btn-google{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:0 48px;border-radius:12px;font-size:15px;font-weight:600;text-decoration:none;white-space:nowrap}
.login-step .btn-kakao{background:#fee500;color:rgba(0,0,0,.85)}
.login-step .btn-google{background:#fff;color:#1f1f1f;border:1px solid #dadce0}
.login-step .btn-kakao svg,.login-step .btn-google svg{position:absolute;left:18px;width:20px;height:20px}
.login-step .btn-kakao svg{fill:#000}
.login-step .btn-kakao:hover{filter:brightness(.97)}.login-step .btn-google:hover{background:#f8f9fa}
.login-step .btn-kakao:focus-visible,.login-step .btn-google:focus-visible{outline:3px solid rgba(171,132,83,.6);outline-offset:2px}
@media(max-width:380px){.login-step .btn-kakao,.login-step .btn-google{padding:0 16px 0 44px;font-size:14px}.login-step .btn-kakao svg,.login-step .btn-google svg{left:14px}}

/* 기기별 확대 안내: 손가락(터치) 기기는 버튼 없이 두 손가락 벌리기·두 번 탭, 마우스 기기는 +/− 버튼 (2026-12-01) */
.tp .tree-scroll{touch-action:pan-x pan-y}
.tp-hint .h-touch{display:none}
@media (hover:none) and (pointer:coarse){.tp .tp-tools{display:none}.tp-hint .h-fine{display:none}.tp-hint .h-touch{display:inline}}

/* 위치 확인 단계: 로그인 단계와 같은 구성(가운데 그림·제목 하나·설명·큰 버튼). 계정 줄은 위쪽 한 줄로 작게 (2026-12-01) */
#picker:has(#stepGps:not([hidden])) .dialog-head .eyebrow,#picker:has(#stepGps:not([hidden])) .dialog-head h2{display:none}
#picker:has(#stepGps:not([hidden])) .dialog-head{min-height:0;padding-bottom:0;border-bottom:0}
.gps-step{text-align:center;padding:0 8px 8px}
.who-bar{display:flex;align-items:center;gap:8px;max-width:340px;margin:0 auto 18px;padding:6px 6px 6px 8px;border-radius:999px;background:rgba(32,55,47,.06);text-align:left}
.who-ic{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#fff}
.who-ic svg{width:16px;height:16px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round}
.who-name{flex:1;min-width:0;font-size:13px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.who-bar form{flex:none;margin:0}
.who-out{min-height:32px;padding:0 12px;border:0;border-radius:999px;background:#fff;color:var(--muted);font:600 12px/1 inherit;cursor:pointer;white-space:nowrap}
.who-out:hover{color:var(--ink)}.who-out:focus-visible{outline:3px solid rgba(171,132,83,.6);outline-offset:2px}
.gps-art{width:72px;height:72px;margin:0 auto 12px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(closest-side,rgba(180,68,57,.16),rgba(180,68,57,0))}
.gps-art svg{width:36px;height:36px;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linejoin:round}
.gps-step h2{margin:0 0 8px;font-size:22px;line-height:1.3}
.gps-desc{margin:0 auto 20px;max-width:320px;font-size:14px;line-height:1.6;color:var(--muted);text-wrap:pretty}
:lang(ko) .gps-desc{word-break:keep-all;overflow-wrap:anywhere}
.gps-step .gps-go{width:100%;max-width:340px;min-height:50px;border-radius:12px;font-size:15px}
.gps-step .status{margin:10px auto 0;max-width:340px;font-size:13px}
.gps-step .gps-help{text-align:left}

/* hidden 속성이 display:block 에 밀려 1개뿐인데도 "더 보기"가 보이던 문제 (2026-12-01) */
.tp-more[hidden],.tp [hidden]{display:none!important}

/* ===== 팝업 공통: 스크롤 깨짐 수정 + 크리스마스 테마 (2026-12-01) =====
   - 스크롤바가 둥근 모서리를 뚫고 나오던 문제: 얇은 스크롤바, 위·아래 모서리에서 떨어뜨림
   - 머리(닫기 버튼)는 스크롤해도 위에 붙어 있음
   - 맨 위 빨강·금·초록 리본, 은은한 금빛 눈송이 점, 화환 그림, 빨간 버튼 */
body.tp dialog{--dp:26px;padding:var(--dp);border:1px solid rgba(171,132,83,.35);overscroll-behavior:contain;
  background:radial-gradient(rgba(171,132,83,.09) 1.2px,transparent 1.7px) 0 0/22px 22px,var(--paper);
  box-shadow:0 30px 120px rgba(0,20,30,.55),0 0 0 6px rgba(246,242,233,.06)}
@media(max-width:700px){body.tp dialog{--dp:20px}}
body.tp dialog::-webkit-scrollbar{width:6px}
body.tp dialog::-webkit-scrollbar-track{background:transparent;margin:28px 0}
body.tp dialog::-webkit-scrollbar-thumb{background:rgba(171,132,83,.45);border-radius:999px}
@supports (-moz-appearance:none){body.tp dialog{scrollbar-width:thin;scrollbar-color:rgba(171,132,83,.45) transparent}}
body.tp dialog::backdrop{background:radial-gradient(rgba(255,255,255,.12) 1px,transparent 1.6px) 0 0/34px 34px,radial-gradient(rgba(255,255,255,.08) 1px,transparent 1.6px) 17px 17px/34px 34px,rgba(6,20,26,.72);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
body.tp dialog .dialog-head{position:sticky;top:calc(var(--dp) * -1);z-index:5;margin:calc(var(--dp) * -1) calc(var(--dp) * -1) 14px;padding:calc(var(--dp) + 4px) var(--dp) 10px;
  background:linear-gradient(90deg,#a8262c 0 33%,#d4a24f 33% 67%,#1f5a3d 67%) top/100% 5px no-repeat,linear-gradient(var(--paper) 78%,rgba(246,242,233,0))}
body.tp #picker:has(#stepLogin:not([hidden])) .dialog-head,body.tp #picker:has(#stepGps:not([hidden])) .dialog-head{margin-bottom:0;padding-bottom:0}
body.tp dialog .close{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid rgba(171,132,83,.35);background:#fff;color:var(--ink);font-size:24px;line-height:1;cursor:pointer;transition:transform .15s,background .15s}
body.tp dialog .close:hover{background:#fbf7ef;transform:rotate(90deg)}
body.tp dialog .close:focus-visible{outline:3px solid rgba(171,132,83,.6);outline-offset:2px}
body.tp dialog .xmas-eyebrow{display:inline-flex;align-items:center;gap:6px;margin:0;color:#a8262c;font-size:11px;letter-spacing:.12em;text-transform:none}
body.tp dialog .xmas-eyebrow::before{content:"";width:12px;height:12px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c8913f' d='M12 1.5l2.6 7.1 7.4.3-5.8 4.6 2 7.2L12 16.5l-6.2 4.2 2-7.2L2 8.9l7.4-.3z'/%3E%3C/svg%3E")}
body.tp dialog .dialog-head h2{font-weight:600}
/* 로그인·위치 그림 둘레에 작은 화환 */
.login-art,.gps-art{position:relative;width:104px;height:104px;background:center/104px 104px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='41' fill='none' stroke='%232f6b45' stroke-width='9' stroke-dasharray='8 3.5' stroke-linecap='round'/%3E%3Ccircle cx='50' cy='50' r='41' fill='none' stroke='%231d4a32' stroke-width='3' stroke-dasharray='2 9.5' stroke-dashoffset='3'/%3E%3Cg fill='%23c0392b'%3E%3Ccircle cx='50' cy='9' r='3.4'/%3E%3Ccircle cx='79' cy='21' r='3.4'/%3E%3Ccircle cx='91' cy='50' r='3.4'/%3E%3Ccircle cx='79' cy='79' r='3.4'/%3E%3Ccircle cx='21' cy='79' r='3.4'/%3E%3Ccircle cx='9' cy='50' r='3.4'/%3E%3Ccircle cx='21' cy='21' r='3.4'/%3E%3C/g%3E%3Cpath fill='%23c0392b' d='M50 86l-9-6v9zM50 86l9-6v9z'/%3E%3Ccircle cx='50' cy='86' r='3' fill='%23a8262c'/%3E%3C/svg%3E"),radial-gradient(closest-side,#fffaf0,rgba(255,250,240,0))}
.login-art img{width:60px;height:60px}
.gps-art svg{width:32px;height:32px}
/* 팝업 안 주 버튼: 크리스마스 빨강 */
body.tp dialog button.primary{background:linear-gradient(180deg,#c43a33,#9e2a25);color:#fff;border:0;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 6px 16px rgba(158,42,37,.22)}
body.tp dialog button.primary:hover{filter:brightness(1.05)}
body.tp dialog button.primary:focus-visible{outline:3px solid rgba(171,132,83,.6);outline-offset:2px}
body.tp dialog button.primary:disabled{background:#cdb9ae;box-shadow:none;cursor:not-allowed}
/* 위치 없이 달기 */
.gps-skip{max-width:340px;margin:12px auto 0}
.btn-skip{width:100%;min-height:46px;padding:0 16px;border:1px solid rgba(32,55,47,.18);border-radius:12px;background:#fff;color:var(--ink);font:600 14px/1.3 inherit;cursor:pointer}
.btn-skip:hover{background:#fbf7ef}.btn-skip:focus-visible{outline:3px solid rgba(171,132,83,.6);outline-offset:2px}.btn-skip:disabled{opacity:.6}
.gps-skip p{margin:6px 0 0;font-size:12.5px;line-height:1.5;color:var(--muted)}
:lang(ko) .gps-skip p{word-break:keep-all;overflow-wrap:anywhere}
/* 알림 띠(토스트): 짙은 초록 + 금빛 테두리 */
body.tp #toast{bottom:calc(84px + env(safe-area-inset-bottom));padding:12px 18px;border-radius:999px;background:#163a2b;border:1px solid rgba(230,195,139,.55);color:#f6f2e9;font-size:14px;line-height:1.45;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.35);z-index:120;max-width:min(92vw,440px)}
@media(prefers-reduced-motion:reduce){body.tp dialog .close:hover{transform:none}}

/* 봇 함정 칸: 사람 눈과 화면 읽기 프로그램에는 보이지 않게 (2026-12-01) */
.hp-field{position:absolute!important;left:-10000px!important;top:auto;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}

/* ===== 위치 단계 다시 만들기 (2026-12-01): 질문 하나, 두 갈래 버튼, 작은 안내 한 줄 ===== */
.gps-step h2{font-size:22px;text-wrap:balance}
.gps-step .gps-desc{max-width:300px;margin-bottom:18px;font-size:14.5px;color:#4f5b53;text-wrap:balance}
.gps-choices{display:grid;gap:10px;max-width:340px;margin:0 auto}
.gps-choices .gps-go,.gps-choices .btn-skip{width:100%;max-width:none;min-height:52px;border-radius:14px;font-size:15px}
.gps-choices .btn-skip{border:1.5px solid rgba(32,55,47,.2)}
.gps-note{display:flex;align-items:flex-start;justify-content:center;gap:6px;max-width:320px;margin:14px auto 0;font-size:12.5px;line-height:1.5;color:var(--muted);text-align:left;text-wrap:pretty}
.gps-note svg{flex:none;width:15px;height:15px;margin-top:2px;fill:none;stroke:#1f5a3d;stroke-width:1.8;stroke-linejoin:round}
:lang(ko) .gps-step .gps-desc,:lang(ko) .gps-note span{word-break:keep-all}
.gps-art svg{width:34px;height:34px;stroke:#a8262c;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;fill:none}
.gps-howto{max-width:340px;margin:16px auto 0;border-radius:12px;background:rgba(32,55,47,.05);text-align:left}
.gps-howto>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:0 14px;font-size:13.5px;font-weight:700;color:var(--ink);cursor:pointer;list-style:none}
.gps-howto>summary::-webkit-details-marker{display:none}
.gps-howto>summary::after{content:"";width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg) translateY(-2px);transition:transform .2s}
.gps-howto[open]>summary::after{transform:rotate(-135deg) translateY(-2px)}
.gps-howto-body{padding:0 14px 14px}
.gps-step .gps-help{margin-top:0;padding-top:0;border-top:0}

/* ===== 메시지 보기: 메시지가 주인공, 닉네임은 아래 서명 (2026-12-01) ===== */
#messageDialog{max-width:440px}
.wish-letter{position:relative;margin:4px 0 0;padding:22px 20px 18px;border-radius:18px;background:#fffdf8;border:1px solid rgba(171,132,83,.28);box-shadow:0 1px 0 rgba(255,255,255,.8) inset,0 8px 24px rgba(60,40,10,.08);text-align:center}
.wish-orn{width:96px;height:96px;margin:-4px auto 12px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(closest-side,rgba(230,195,139,.35),rgba(230,195,139,0))}
.wish-orn img,#messageDialog .message-art{width:80px;height:80px;object-fit:contain;margin:0;filter:drop-shadow(0 6px 10px rgba(60,40,10,.22))}
.wish-text{position:relative;margin:0 auto;max-width:330px;padding:10px 6px 0;font-size:19px;line-height:1.6;font-weight:500;color:#1f2f28;text-wrap:pretty}
.wish-text::before,.wish-text::after{position:absolute;font:700 44px/1 Georgia,serif;color:rgba(168,38,44,.22)}
.wish-text::before{content:"\201C";left:-8px;top:-6px}
.wish-text::after{content:"\201D";right:-8px;bottom:-26px}
.wish-sign{display:flex;align-items:baseline;justify-content:center;gap:8px;margin:18px 0 0;padding-top:14px;border-top:1px dashed rgba(171,132,83,.45)}
.wish-from{font-size:11px;font-weight:700;letter-spacing:.08em;color:#a8262c}
.wish-sign strong{font-size:16px;font-weight:700;color:var(--ink)}
#messageDialog .message-foot{display:flex;align-items:center;justify-content:space-between;margin-top:14px}
#messageDialog .small{font-size:12px;color:var(--muted)}

/* ===== 안내 플레이어: 휴대폰 화면 아래에 지금 단계 문장 하나 (2026-12-01) ===== */
.gps-howto .gps-body{grid-template-columns:1fr!important;justify-items:center;padding:0 12px 14px}
.gps-howto .gp-screen{width:min(100%,210px);background:#eef0ef}
.gps-howto .gp-screen.gp-err img{visibility:hidden}
.gps-howto .gp-screen.gp-err::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,#eef0ef 30%,#f8f8f6 50%,#eef0ef 70%)}
.gp-cap{min-height:3.2em;max-width:300px;margin:2px auto 0;font-size:14px;line-height:1.6;font-weight:600;color:var(--ink);text-align:center;text-wrap:balance}
:lang(ko) .gp-cap{word-break:keep-all;overflow-wrap:anywhere}
.gps-steps.gps-steps-src{display:none}
.gps-howto .gps-block{margin:0 0 10px;border-radius:14px}
.gps-howto .gps-block summary{min-height:44px;padding:10px 14px;font-size:14px}
.gps-howto .gp-bar{gap:4px}

/* ===== 팝업 크리스마스 꾸밈 다시 (2026-12-01) =====
   점무늬 배경은 없애고 따뜻한 종이색, 위치 단계 맨 위는 눈 오는 마을 그림 + 손 흔드는 멜버니 */
body.tp dialog{background:linear-gradient(180deg,#fbf6ec,#f6efe2)}
.xmas-hero{position:relative;height:150px;margin:calc(var(--dp) * -1 - 58px) calc(var(--dp) * -1 - 8px) 34px;background:#1b2d52 url("/assets/img/popup-scene.webp?v=20261201-7") center 70%/cover no-repeat}
.xmas-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(rgba(255,255,255,.75) 1.1px,transparent 1.6px) 0 0/46px 46px,radial-gradient(rgba(255,255,255,.5) 1px,transparent 1.5px) 23px 19px/46px 46px;animation:mcmSnow 9s linear infinite}
.xmas-hero::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:46px;background:linear-gradient(rgba(251,246,236,0),#fbf6ec)}
.xmas-bunny{position:absolute;left:50%;bottom:-30px;z-index:1;width:105px;height:auto;transform:translateX(-50%);filter:drop-shadow(0 8px 12px rgba(20,30,40,.28))}
@keyframes mcmSnow{from{background-position:0 0,23px 19px}to{background-position:0 46px,23px 65px}}
@media(prefers-reduced-motion:reduce){.xmas-hero::before{animation:none}}
body.tp #picker:has(#stepGps:not([hidden])) .dialog-head{background:linear-gradient(90deg,#a8262c 0 33%,#d4a24f 33% 67%,#1f5a3d 67%) top/100% 5px no-repeat}
body.tp #picker:has(#stepGps:not([hidden])) .dialog-head .close{background:rgba(255,255,255,.92)}
.gps-step{padding-top:0}
.gps-step h2{margin-top:6px}

.gps-howto .gp-bar{flex-wrap:nowrap;gap:2px;width:100%;justify-content:space-between;max-width:280px}
.gps-howto .gp-dots{min-width:0;overflow:hidden}
.gps-howto .gp-dot{width:14px}
.gps-howto .gp-count{min-width:34px}

/* 총 방문자 수 (장식·하트 줄 위) 2026-12-01 */
.tp-visits{display:inline-flex;align-items:center;gap:6px;margin:0 0 8px;padding:4px 12px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(230,195,139,.35);color:#f6f2e9;font-size:12.5px;font-weight:600;letter-spacing:.01em;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.tp-visits svg{width:15px;height:15px;fill:none;stroke:#e6c38b;stroke-width:1.8}

/* 라이브로 새로 들어온 장식 카드: 잠깐 금빛으로 반짝 (2026-12-01) */
.wish-card.is-new{animation:mcmNewCard 2.4s ease-out 1}
@keyframes mcmNewCard{0%{box-shadow:0 0 0 2px rgba(230,195,139,.9),0 0 24px rgba(230,195,139,.55)}100%{box-shadow:0 0 0 0 rgba(230,195,139,0)}}
@media(prefers-reduced-motion:reduce){.wish-card.is-new{animation:none}}

/* '내 장식 고르기'가 키 작은 휴대폰에서 화면 아래로 잘리던 문제 (2026-12-01):
   .tp-hero 의 overflow:hidden 이 sticky 를 막고 있었다. clip 은 넘침은 똑같이 숨기면서 sticky 는 막지 않는다 */
@supports (overflow:clip){.tp-hero{overflow:clip}}
@supports not (overflow:clip){.tp-cta{position:fixed;left:0;right:0;bottom:0}}
/* 키 작은 휴대폰(높이 760 이하): 트리를 조금 줄여 안내 문구와 '내 장식 고르기'가 첫 화면에 겹치지 않게 */
@media (max-height:760px) and (max-width:700px){.tp .tree-scroll{height:max(250px,calc(100svh - 400px))}.tp-copy .tp-sub{margin-bottom:4px}}
