@font-face{font-family:'Paperlogy';src:url(../fonts/Paperlogy-500.woff2) format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'Paperlogy';src:url(../fonts/Paperlogy-700.woff2) format('woff2');font-weight:600 700;font-display:swap}
@font-face{font-family:'Paperlogy';src:url(../fonts/Paperlogy-800.woff2) format('woff2');font-weight:800 900;font-display:swap}
:root{
  --ice:#e6f4fa;--cream:#fbf6ea;--card:#fffefb;--ink:#1d2430;--ink2:#45515f;--muted:#79869a;--line:#d6e4ec;
  --teal:#1f7a78;--blue:#2f6fb0;--acc:#f08a24;--acc2:#c96a0c;--hi:#ffd54a;--ok:#2f8a63;--okl:#dcf1e6;--no:#c0392b;--pink:#d9577f;
  --stage:var(--teal);--hh:76px;--sh:0 26px 44px -30px rgba(30,70,100,.45),0 2px 0 rgba(255,255,255,.95) inset;
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:linear-gradient(180deg,#e3f3fa 0,#f2f9fb 38%,var(--cream) 100%) fixed var(--ice)}
body{min-height:100dvh;font-family:'Paperlogy','Pretendard','Malgun Gothic',sans-serif;font-weight:500;font-size:20px;color:var(--ink);
  background:transparent;
  word-break:keep-all;overflow-wrap:break-word;line-break:strict;-webkit-font-smoothing:antialiased}
body::before{content:"";position:fixed;inset:0;z-index:-1;background:url(../images/bg-main.webp) center/cover no-repeat;opacity:.35}
h1,h2,h3,h4,p{text-wrap:pretty}h1,h2,h3{text-wrap:balance;font-weight:800;line-height:1.28}
button,input,textarea,select{font:inherit;color:inherit;word-break:keep-all;overflow-wrap:break-word}
button{border:0;background:none;cursor:pointer}
img{display:block;max-width:100%}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:4px solid var(--acc);outline-offset:3px;border-radius:12px}

/* 상단 바 */
#top{position:sticky;top:0;z-index:30;height:var(--hh);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 clamp(12px,2vw,28px) 4px;
  background:linear-gradient(180deg,rgba(255,254,251,.95),rgba(238,248,252,.86));backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px) saturate(1.2);box-shadow:0 12px 26px -20px rgba(30,70,100,.6)}
#top::after{content:"";position:absolute;left:0;right:0;bottom:0;height:5px;background:linear-gradient(90deg,var(--teal) 0 28%,#5bb4d6 28% 52%,var(--hi) 52% 76%,var(--acc) 76%)}
.brand{display:flex;align-items:center;gap:14px;color:var(--ink);text-decoration:none;min-width:0}
.brand:hover .mark{transform:rotate(-8deg) scale(1.06)}
.x{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.bsub{font-size:17px;font-weight:800;color:#fff;background:var(--teal);border-radius:99px;padding:0 13px 1px;line-height:1.4;white-space:nowrap}
.mark{width:50px;height:50px;border-radius:16px;transition:transform .2s;flex:none;background:linear-gradient(135deg,#2c9a96,#1a6967);box-shadow:0 8px 16px -6px rgba(20,100,100,.7),inset 0 -4px 0 rgba(0,0,0,.14);position:relative}
.mark::before{content:"";position:absolute;left:10px;top:9px;width:19px;height:19px;border:5.5px solid #fff;border-radius:50%}
.mark::after{content:"";position:absolute;left:30px;top:32px;width:13px;height:5.5px;background:var(--hi);border-radius:3px;transform:rotate(45deg);transform-origin:left center}
.wordmark{font-size:clamp(22px,2.4vw,32px);font-weight:800;letter-spacing:-.02em;line-height:1.05;white-space:nowrap}
.top-r{display:flex;align-items:center;gap:10px;flex:none}
.tbtn{height:46px;padding:0 20px;border-radius:99px;background:#fff;border:2px solid var(--ink);box-shadow:0 4px 0 var(--ink);font-weight:800;font-size:18px;display:inline-flex;align-items:center;gap:8px;transition:transform .12s,box-shadow .12s,background .15s;white-space:nowrap}
.tbtn:hover{transform:translateY(-2px);box-shadow:0 6px 0 var(--ink);background:#fff8e3}
.tbtn:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ink)}
.tbtn.ic[aria-pressed="true"]{background:var(--ink);color:#fff}
.logoLink{display:block;margin-left:6px;padding-left:16px;border-left:2px solid rgba(29,36,48,.16)}
.brandlogo{height:42px;width:auto}
.ico{width:1.1em;height:1.1em;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:none}
body.in-title .brand,body.in-title #resetBtn,body.in-title .logoLink{visibility:hidden}
body.in-title #top{background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}body.in-title #top::after{display:none}
body.modal-open #top{filter:blur(4px) brightness(.6);pointer-events:none}

/* 진행 표시 */
#steps{position:sticky;top:var(--hh);z-index:25;display:flex;justify-content:center;padding:10px clamp(10px,2vw,28px);background:rgba(240,249,252,.9);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
#steps ol{list-style:none;display:flex;align-items:center;gap:0;width:100%;max-width:1180px}
#steps li{flex:1;display:flex;align-items:center;min-width:0}
#steps li:last-child{flex:none}
#steps li:not(:last-child)::after{content:"";flex:1;height:5px;margin:0 8px;border-radius:9px;background:#cfdde6}
#steps li.done:not(:last-child)::after{background:var(--teal)}
.stp{display:flex;align-items:center;gap:10px;padding:5px 14px 5px 6px;border-radius:99px;font-weight:800;font-size:18px;color:var(--muted);white-space:nowrap;background:transparent;border:2px solid transparent;transition:.15s}
.stp .n{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#dbe7ee;color:#fff;font-size:17px;flex:none}
.stp small{display:block;font-size:17px;font-weight:700;line-height:1.1;opacity:.85}
.stp span.t{display:flex;flex-direction:column;line-height:1.2;text-align:left}
.stp[disabled]{cursor:not-allowed}
.stp:not([disabled]):hover{background:#fff}
.done .stp{color:var(--teal)}.done .stp .n{background:var(--teal)}
.cur .stp{background:#fff;border-color:var(--acc);color:var(--ink);box-shadow:0 5px 0 var(--acc)}
.cur .stp .n{background:var(--acc)}

/* 버튼 */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:58px;padding:0 34px;border-radius:99px;font-size:22px;font-weight:800;color:#fff;
  background:linear-gradient(180deg,#f7a041,#ea7f14);box-shadow:0 6px 0 #b9600b,0 16px 22px -12px rgba(200,100,10,.6);
  transition:transform .12s,box-shadow .12s,filter .2s;white-space:nowrap;text-decoration:none}
.btn:hover{filter:brightness(1.06)}
.btn:active{transform:translateY(4px);box-shadow:0 2px 0 #b9600b,0 6px 10px -8px rgba(200,100,10,.6)}
.btn[disabled]{background:#cdd8df;box-shadow:0 6px 0 #aab8c2;cursor:not-allowed;filter:none;color:#fff}
.btn.line{background:var(--card);color:var(--ink);box-shadow:0 0 0 2.5px var(--ink),0 6px 0 var(--ink)}
.btn.teal{background:linear-gradient(180deg,#2e9a96,#1d7471);box-shadow:0 6px 0 #14504e,0 16px 22px -12px rgba(20,100,100,.6)}
.btn.sm{min-height:46px;font-size:18px;padding:0 22px;box-shadow:0 4px 0 #b9600b}
.btn.sm.line{box-shadow:0 0 0 2px var(--ink),0 4px 0 var(--ink)}
.btn.big{min-height:78px;font-size:30px;padding:0 60px}
.btn b{background:rgba(255,255,255,.28);border-radius:99px;padding:0 10px;font-size:17px;line-height:1.5}

/* 카드·알약 */
.card{background:rgba(255,254,251,.92);border:1px solid rgba(255,255,255,.95);border-radius:26px;box-shadow:var(--sh)}
.pill{display:inline-flex;align-items:center;height:34px;padding:0 15px;border-radius:99px;font-size:17px;font-weight:800;background:var(--stage);color:#fff;white-space:nowrap}
.lbl{font-size:17px;font-weight:700;color:var(--muted)}

/* 작업 화면 */
.work{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:clamp(14px,1.6vw,26px);padding:16px clamp(10px,2vw,28px) 24px;align-items:start;max-width:1900px;margin:0 auto}
@media(min-width:1000px){
  .work{height:calc(100dvh - var(--hh) - var(--sh2,66px));align-items:stretch;padding-bottom:16px}
  .left,.pane{overflow:auto;min-height:0;scrollbar-width:thin}
}
.left{display:flex;flex-direction:column;gap:12px;padding:2px 4px 8px}
.vwrap{position:relative;width:100%;aspect-ratio:16/9;border-radius:24px;overflow:hidden;background:#101820;box-shadow:0 0 0 5px #fff,0 0 0 7px rgba(29,36,48,.85),0 30px 50px -28px rgba(10,40,60,.7);flex:none;margin:7px 7px 0;width:calc(100% - 14px)}
.vwrap iframe,.vwrap #yt{position:absolute;inset:0;width:100%;height:100%;border:0}
.vfail{position:absolute;inset:0;z-index:8;display:grid;place-items:center;text-align:center;padding:24px;background:#17222e;color:#fff}
.vfail p{font-size:20px;line-height:1.6;margin-bottom:16px}
.vbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:rgba(255,254,251,.92);border-radius:20px;padding:10px 14px;box-shadow:var(--sh)}
.vb{height:44px;min-width:64px;padding:0 14px;border-radius:99px;background:#fff;border:2px solid var(--ink);box-shadow:0 3px 0 var(--ink);font-weight:800;font-size:18px}
.vb:active{transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}
.vb.play{background:var(--teal);color:#fff;border-color:var(--ink);min-width:84px}
.seekw{flex:1;min-width:140px;display:flex;align-items:center}
.seekw input{width:100%;accent-color:var(--acc);height:28px;cursor:pointer}
.vtime{font-size:19px;font-weight:700;color:var(--ink2);white-space:nowrap}.vtime b{color:var(--ink);font-size:22px}
.vrow2{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.spd{font-size:18px;font-weight:700;color:var(--ink2);display:flex;align-items:center;gap:8px}
.spd select{height:42px;border-radius:12px;border:2px solid var(--ink);background:#fff;padding:0 10px;font-weight:700}
.ylink{margin-left:auto;font-size:17px;font-weight:700;color:var(--blue)}
.tray{display:flex;gap:8px;flex-wrap:wrap;min-height:6px}
.tray .tl{width:100%;font-size:17px;font-weight:800;color:var(--ink2)}
.mk{display:inline-flex;align-items:center;gap:8px;max-width:100%;height:42px;padding:0 14px 0 6px;border-radius:99px;background:#fff;border:2px solid var(--line);font-size:17px;font-weight:700;transition:.15s}
.mk:hover{border-color:var(--acc);transform:translateY(-2px)}
.mk i{font-style:normal;background:var(--ink);color:#fff;border-radius:99px;padding:2px 10px;font-size:17px;font-weight:800;flex:none}
.mk span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}
.credit{font-size:17px;color:var(--muted);font-weight:600}

/* 오른쪽 패널 */
.pane{scroll-margin-top:calc(var(--hh) + var(--sh2,66px) + 8px);display:flex;flex-direction:column;gap:16px;padding:2px 4px 14px}
.R{display:flex;flex-direction:column;gap:16px;padding:clamp(18px,2vw,30px);border-top:9px solid var(--stage)}
.rhead{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.rhead h2{font-size:clamp(25px,2.2vw,33px);flex:1 1 280px}
.say{display:flex;align-items:flex-end;gap:14px}
.say img{height:130px;width:auto;flex:none}
.say .bub{background:#fff;border-radius:22px 22px 22px 6px;padding:14px 20px;font-size:19px;font-weight:600;line-height:1.6;box-shadow:0 12px 22px -14px rgba(20,60,90,.5);flex:1}
.say .bub p+p{margin-top:4px}
.say .bub b{color:var(--acc2)}
.q{font-size:22px;font-weight:800;line-height:1.4}
.q small{display:block;font-size:18px;font-weight:600;color:var(--ink2);margin-top:2px}
.fld{display:flex;flex-direction:column;gap:6px}
.fld>label,.fld>.fl{font-size:20px;font-weight:800;line-height:1.35}
.fld>label small,.fld>.fl small{font-size:17px;font-weight:600;color:var(--ink2);display:block}
.in,.tx,.sm-in{border-radius:16px;border:3px solid var(--ink);background:#fff;padding:0 16px;font-size:21px;font-weight:600;width:100%}
.in{height:56px}.sm-in{height:52px}
.tx{padding:12px 16px;line-height:1.55;resize:vertical;min-height:94px}
.in:focus,.tx:focus,.sm-in:focus{outline:none;box-shadow:0 0 0 6px rgba(255,213,74,.75)}
::placeholder{color:#9aa6b4;font-weight:500}
.cnt{font-size:17px;color:var(--muted);text-align:right;font-weight:600}
.ft{display:flex;gap:12px;justify-content:flex-end;align-items:center;flex-wrap:wrap;margin-top:6px;padding-top:6px}
.need{margin-right:auto;font-size:18px;font-weight:800;color:var(--acc2);display:flex;align-items:center;gap:8px;line-height:1.35;flex:1 1 220px}
.need::before{content:"!";flex:none;width:26px;height:26px;border-radius:50%;background:var(--acc);color:#fff;display:grid;place-items:center;font-size:17px}
.need:empty{display:none}
.sec{border:2px dashed var(--line);border-radius:20px;padding:14px 16px;background:rgba(255,255,255,.55)}

/* 칩 */
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip{padding:10px 18px;border-radius:99px;background:#eef4f8;border:3px solid transparent;font-size:20px;font-weight:700;display:inline-flex;flex-direction:column;align-items:flex-start;gap:0;line-height:1.3;transition:.15s;text-align:left}
.chip small{font-size:17px;font-weight:600;color:var(--ink2)}
.chip:hover{background:#e4f0f6;transform:translateY(-2px)}
.chip.sel{background:#fff2b8;border-color:#e8b800}
.chips.four{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.chips.four .chip{border-radius:20px;min-height:72px;justify-content:center}

/* 장면 기록 줄 */
.rec{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:8px 10px;align-items:center;padding:12px;border-radius:20px;background:#fff;border:3px solid var(--line)}
.rec.best{border-color:#e8b800;background:#fffaf0}
.rec .tin{width:112px;text-align:center;font-weight:800}
.rec .note{grid-column:2}
.rec .row2{grid-column:1/-1;display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:space-between}
.rd{display:inline-flex;align-items:center;gap:8px;font-size:18px;font-weight:700;cursor:pointer}
.rd input{width:22px;height:22px;accent-color:var(--acc)}
.xbtn{width:42px;height:42px;border-radius:50%;background:#f1e6e4;color:#8f2a1f;font-weight:800;font-size:22px;line-height:1}
.xbtn:hover{background:#f7d3cd}
.empty{padding:22px;text-align:center;color:var(--ink2);font-weight:700;background:rgba(255,255,255,.6);border-radius:18px;border:2px dashed var(--line);font-size:19px;line-height:1.6}

/* 시간 입력 */
.tf{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.tf .tin{width:130px;text-align:center;font-weight:800}
.tf select{height:52px;border-radius:16px;border:3px solid var(--ink);background:#fff;padding:0 12px;font-size:18px;font-weight:700;max-width:100%}

/* 발견 카드 */
.find{display:flex;flex-direction:column;gap:14px;padding:clamp(16px,1.8vw,24px);border:3px solid var(--line);border-radius:24px;background:#fff}
.find>header{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.find>header h3{font-size:24px;flex:1}
.find .ok{display:none;font-size:17px;font-weight:800;color:var(--ok);background:var(--okl);border-radius:99px;padding:2px 12px}
.find.done{border-color:var(--ok)}.find.done .ok{display:inline-block}
.softnote{font-size:18px;font-weight:700;color:#2f3f75;background:#e8eefb;border-radius:14px;padding:9px 14px;line-height:1.5}
.callout{font-size:18px;font-weight:700;color:var(--ink2);background:#fff6d6;border-radius:16px;padding:11px 16px;line-height:1.55}

/* 힌트 */
details.hints{border-radius:20px;background:#eaf6f3;border:2px solid #bfe2d9}
details.hints>summary,details.sub>summary{cursor:pointer;list-style:none;padding:13px 18px;font-weight:800;font-size:20px;display:flex;align-items:center;gap:10px}
details>summary::-webkit-details-marker{display:none}
details>summary::before{content:"+";width:26px;height:26px;border-radius:50%;background:var(--teal);color:#fff;display:grid;place-items:center;font-size:19px;flex:none;line-height:1}
details[open]>summary::before{content:"-"}
details .dbody{padding:0 18px 14px;display:flex;flex-direction:column;gap:8px}
details.sub{background:#fff;border-radius:16px;border:2px solid #cfe6df}
details.sub>summary{font-size:18px;padding:10px 14px}
details.sub p{padding:0 16px 12px 52px;font-size:19px;line-height:1.6;font-weight:600;color:var(--ink2)}

/* 선택 카드(미션 3) */
.pick{display:flex;flex-direction:column;gap:6px;text-align:left;padding:16px 18px;border-radius:20px;background:#fff;border:3px solid var(--line);width:100%;transition:.15s}
.pick:hover{border-color:var(--acc)}
.pick.sel{border-color:#e8b800;background:#fff8dc;box-shadow:0 5px 0 #e8b800}
.pick .ph{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.pick b{font-size:20px}.pick p{font-size:18px;color:var(--ink2);font-weight:600;line-height:1.5}
.tm{font-style:normal;background:var(--ink);color:#fff;border-radius:99px;padding:1px 11px;font-size:17px;font-weight:800}

/* 모달·토스트 */
#modal{position:fixed;inset:0;z-index:60;background:rgba(20,30,40,.55);backdrop-filter:blur(6px);display:grid;place-items:center;padding:16px;animation:fade .25s both}
.box{background:var(--card);border-radius:30px;box-shadow:0 50px 90px -30px rgba(0,0,0,.7);padding:30px 34px;width:min(100%,var(--w,680px));max-height:calc(100dvh - 32px);overflow:auto;animation:pop .4s cubic-bezier(.2,.9,.3,1.1) both}
.box h3{font-size:30px;margin-bottom:6px}
.box .acts{display:flex;gap:12px;justify-content:flex-end;align-items:center;margin-top:20px;flex-wrap:wrap}
.cbody{font-size:20px;font-weight:600;line-height:1.65;margin-top:10px;color:var(--ink2)}
.helpg{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
@media(max-width:700px){.helpg{grid-template-columns:1fr}}
.hc{background:#eef6fa;border-radius:20px;padding:14px 18px;display:grid;grid-template-columns:40px 1fr;gap:2px 12px;align-items:center}
.hn{width:40px;height:40px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:800;font-size:19px;grid-row:span 2}
.hc b{font-size:20px}.hc p{font-size:18px;line-height:1.5;color:var(--ink2)}
.cklist{list-style:none;display:flex;flex-direction:column;gap:8px;margin-top:12px}
.cklist li{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:700}
.cklist i{font-style:normal;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:17px;font-weight:800;flex:none;color:#fff}
.cklist .y i{background:var(--ok)}.cklist .n i{background:#c9d3dc}.cklist .n{color:var(--muted)}
#toast{position:fixed;left:50%;bottom:30px;transform:translate(-50%,30px);background:var(--ink);color:#fff;padding:13px 26px;border-radius:99px;opacity:0;pointer-events:none;transition:.3s;z-index:90;font-size:19px;font-weight:700;max-width:92vw;text-align:center}
#toast.on{opacity:1;transform:translate(-50%,0)}

@keyframes up{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes pop{0%{transform:scale(.9);opacity:0}60%{transform:scale(1.03)}100%{transform:scale(1);opacity:1}}
@keyframes fade{from{opacity:0}to{opacity:1}}
.anim{animation:up .35s both}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

@media(max-width:760px){
  :root{--hh:68px}
  .bsub,.logoLink{display:none}
  .tbtn{padding:0 14px;font-size:17px}
  .stp small{display:none}.stp{padding-right:8px}.stp span.t{display:none}.cur .stp span.t{display:flex}
  .rec{grid-template-columns:auto minmax(0,1fr)}
  .chips.four{grid-template-columns:1fr}
  .ifg{grid-template-columns:1fr}
  .say img{height:90px}
}


@media(max-width:999px){
  .work{grid-template-columns:1fr}
  .bsub,.logoLink{display:none}
  .wordmark{font-size:24px}
  .left{max-width:760px;margin:0 auto;width:100%}
}

/* ===== 2차 개선 ===== */
/* 상단 바 제목 */
.mark{width:56px;height:56px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px var(--teal),0 8px 14px -6px rgba(20,100,100,.6);display:grid;place-items:center;overflow:hidden;flex:none}
.mark::before,.mark::after{display:none}
.mark img{width:50px;height:50px;object-fit:contain}
.wordmark{display:flex;align-items:baseline;gap:8px;font-size:clamp(24px,2.6vw,36px);letter-spacing:-.03em;line-height:1;text-shadow:0 2px 0 #fff}
.wordmark span{color:#14506e}
.wordmark em{font-style:normal;color:#fff;background:linear-gradient(180deg,#f7a041,#e8730a);border-radius:14px;padding:3px 12px 5px;text-shadow:0 2px 0 rgba(150,70,0,.55);box-shadow:0 4px 0 #b9600b;transform:rotate(-1.5deg);display:inline-block}
.tbtn.iconly{width:46px;padding:0;justify-content:center;font-size:24px}
/* 표지 */
.cover{position:relative;min-height:calc(100dvh - var(--hh));display:flex;align-items:flex-end;animation:fade .5s both;padding:0}
body.in-title::before{background:none;opacity:1}
body.in-title::after{content:'';position:fixed;inset:-40px;z-index:-2;background:linear-gradient(180deg,#6aaedb 0,#a9d3ee 100%)}
.cbox{position:relative;width:100%}
.cimg{width:100%;height:auto;display:block;}
.cover .acts{position:absolute;left:0;right:0;top:80%;display:flex;gap:16px;flex-wrap:wrap;justify-content:center}
.cover .btn.big{min-width:clamp(200px,19vw,300px);min-height:clamp(56px,6vw,78px);font-size:clamp(20px,2.2vw,30px);padding:0 24px}
@media(max-width:700px){.cover .acts{top:auto;bottom:6%;flex-direction:column;align-items:center}}
/* 영상 아래 */
.ylink{margin-left:auto;position:relative;text-decoration:none;color:var(--ink)}
.ylink::after{content:attr(data-tip);position:absolute;right:0;bottom:calc(100% + 12px);width:min(300px,80vw);background:var(--ink);color:#fff;font-size:17px;font-weight:600;line-height:1.55;white-space:normal;text-align:left;padding:12px 16px;border-radius:16px;opacity:0;pointer-events:none;transform:translateY(6px);transition:.18s;z-index:20;box-shadow:0 14px 28px -12px rgba(0,0,0,.5)}
.ylink:hover::after,.ylink:focus-visible::after{opacity:1;transform:none}
/* 한 번에 한 가지 */
.rhead{align-items:center}
.dots{display:flex;gap:8px}.dots i{height:10px;flex:1;max-width:60px;border-radius:99px;background:#d6e4ec}
.dots i.dn{background:var(--stage);opacity:.45}.dots i.on{background:var(--stage)}
.say{align-items:center}.say img{height:100px}
.say .bub{font-size:20px;font-weight:700;line-height:1.6;padding:14px 20px}
.bigq{font-size:clamp(24px,2.3vw,32px);font-weight:800;line-height:1.35}
.bigq small{display:block;font-size:19px;font-weight:600;color:var(--ink2);margin-top:6px}
.btn.wide{width:100%;min-height:76px;font-size:26px}
.R .tx{min-height:150px;font-size:23px;border-color:#9fb6c6;background:#fbfdff}
.R .tx:focus,.R .sm-in:focus,.R .in:focus{border-color:var(--ink)}
.ctx{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#eef6fa;border-radius:16px;padding:8px 14px}.ctx b{flex:1;font-size:19px}
.picks{display:flex;flex-direction:column;gap:10px}
.pick{padding:16px 20px}.pick p{font-size:20px;color:var(--ink)}
.chip{width:100%;border-radius:20px}.chip img{height:44px;width:auto;margin-bottom:2px}
.chips.four .chip{flex-direction:column;align-items:flex-start;padding:14px 18px;min-height:112px}
.rec{grid-template-columns:auto minmax(0,1fr) auto auto}
.ideas{padding-left:24px;font-size:20px;font-weight:600;line-height:1.9}
.R{gap:18px}
/* 활동 방법 */
.helpg{grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
.hc{background:#fff;border:3px solid var(--line);border-radius:22px;padding:18px 20px;grid-template-columns:50px 1fr;gap:2px 14px}
.hn{width:50px;height:50px;font-size:24px;background:var(--teal)}
.hc b{font-size:22px}.hc p{font-size:19px}
/* 결과 공유 */
.repScreen{display:flex;flex-direction:column;gap:18px;padding:20px clamp(12px,3vw,40px) 40px;max-width:1500px;margin:0 auto}
.sharehead{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.sharehead h2{font-size:clamp(26px,2.6vw,38px)}.sharehead p{font-size:20px;color:var(--ink2);font-weight:600;margin-top:4px}
.shact{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.shact .nm{width:180px}
.board{background:rgba(255,254,251,.95);border-radius:28px;padding:clamp(18px,2.4vw,34px);box-shadow:var(--sh);border-top:9px solid #b8860b}
.bh small{font-size:18px;font-weight:800;color:var(--teal)}.bh h2{font-size:clamp(26px,2.8vw,40px);margin:2px 0 16px}
.bgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:16px}
.bc{background:#fff;border:3px solid var(--line);border-radius:22px;padding:16px 20px}
.bc h3{display:flex;align-items:center;gap:10px;font-size:22px;margin-bottom:10px}
.bc h3 span{width:34px;height:34px;border-radius:50%;background:var(--stage,var(--teal));color:#fff;display:grid;place-items:center;font-size:18px;flex:none}
.bc .edit{margin-left:auto}
.bc dl{display:grid;grid-template-columns:max-content 1fr;gap:6px 14px;font-size:20px;line-height:1.55}
.bc dt{font-weight:800;color:var(--teal);white-space:nowrap}.bc dd{white-space:pre-wrap;overflow-wrap:anywhere;font-weight:600}
.blank{color:#9aa6b4}
.board:fullscreen{background:var(--cream);overflow:auto;border-radius:0;padding:3vw}
.board:fullscreen .edit{display:none}
.board:fullscreen .bc dl{font-size:clamp(22px,1.9vw,32px)}.board:fullscreen .bc h3{font-size:clamp(24px,2vw,34px)}
.board:fullscreen .bh h2{font-size:clamp(32px,3.4vw,52px)}
.sharetalk{padding:22px 26px;display:flex;flex-direction:column;gap:12px}
.stepsl{list-style:none;counter-reset:s;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.stepsl li{counter-increment:s;display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start;font-size:19px;font-weight:600;line-height:1.5}
.stepsl li::before{content:counter(s);width:32px;height:32px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:800;font-size:17px}
@media(max-width:700px){.helpg{grid-template-columns:1fr}}
body.in-title .brand,body.in-title #resetBtn,body.in-title .logoLink{display:none}
body.in-title #top{justify-content:flex-end}

.helpg{grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}
.hc{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:150px;padding:20px 22px;background:linear-gradient(180deg,#f3fafc,#fff);border:3px solid var(--line);border-top:8px solid var(--teal);border-radius:22px}
.hc:nth-child(2){border-top-color:var(--acc)}.hc:nth-child(3){border-top-color:var(--blue)}.hc:nth-child(4){border-top-color:var(--pink)}
.hn{width:44px;height:44px;font-size:22px;grid-row:auto;background:var(--ink)}
.hc b{font-size:24px}.hc p{font-size:20px;line-height:1.55;font-weight:600}

/* 상단 제목: 표지 글자와 같은 스티커 느낌 */
.brand{gap:12px}
.wordmark{gap:10px;align-items:center;font-size:clamp(26px,2.9vw,40px);font-weight:900;letter-spacing:-.03em;text-shadow:none}
.wordmark span,.wordmark em{-webkit-text-stroke:7px #fff;paint-order:stroke fill;filter:drop-shadow(0 3px 0 rgba(20,60,90,.28));background:none;box-shadow:none;transform:none;padding:0;border-radius:0}
.wordmark span{color:#12465f}
.wordmark em{font-style:normal;color:#f27a0c;position:relative;text-shadow:none}
.wordmark em::after{content:"";position:absolute;left:2px;right:2px;bottom:-5px;height:6px;border-radius:9px;background:var(--hi);z-index:-1}
.mark{width:58px;height:58px}

/* 표지: 16:9 그림을 화면 가득 */
body.in-title::after{display:none}
.cover{display:block;min-height:0}
.cbox{height:100dvh;margin-top:calc(var(--hh) * -1);width:100%;position:relative;overflow:hidden}
.cimg{width:100%;height:100%;object-fit:cover;object-position:35% center}
.cover .acts{top:auto;bottom:7%}
@media(max-width:700px){.cover .acts{bottom:5%}}
.wordmark em::after{display:none}

/* 결과 공유 카드 */
.bgrid{display:grid;grid-template-columns:repeat(6,1fr);gap:18px;align-items:stretch}
.bc.s2{grid-column:span 2}.bc.s3{grid-column:span 3}
@media(max-width:1000px){.bc.s2,.bc.s3{grid-column:1/-1}.bgrid{grid-template-columns:1fr}}
.bc{--cc:var(--teal);display:flex;flex-direction:column;gap:12px;background:#fff;border:3px solid color-mix(in srgb,var(--cc) 28%,#fff);border-top:9px solid var(--cc);border-radius:24px;padding:18px 22px 22px}
.bc.c1{--cc:var(--teal)}.bc.c2{--cc:var(--blue)}.bc.c3{--cc:#7a57c0}.bc.c4{--cc:var(--acc2)}.bc.c5{--cc:var(--pink)}
.bc h3{display:flex;align-items:center;gap:12px;font-size:23px;margin:0}
.bc h3 img{height:44px;width:auto}
.bc h3 .bt{flex:1}
.bc .edit{font-size:17px;font-weight:700;color:var(--ink2);background:#f1f5f8;border-radius:99px;padding:6px 14px}
.bc .edit:hover{background:#e3ecf2}
.bchips{display:flex;gap:8px;flex-wrap:wrap}
.bchip{font-size:19px;font-weight:800;border-radius:99px;padding:3px 14px;background:var(--ink);color:#fff}
.bchip.m{background:color-mix(in srgb,var(--cc) 14%,#fff);color:var(--cc);border:2px solid var(--cc)}
.br small{display:block;font-size:17px;font-weight:800;color:var(--cc);margin-bottom:2px}
.br p{font-size:21px;line-height:1.6;font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere;background:#f8fbfd;border-radius:14px;padding:10px 14px}
.board:fullscreen .br p{font-size:clamp(22px,1.9vw,32px)}.board:fullscreen .bc h3{font-size:clamp(24px,2vw,34px)}
.board:fullscreen .bchip{font-size:clamp(20px,1.6vw,28px)}
.bc h3 .bt{width:auto;height:auto;background:none;border-radius:0;color:var(--ink);display:block;text-align:left;font-size:inherit;flex:1}

/* 크게 보기(전체 화면): 한 화면에 모두 보이게 */
.bh{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.bexit{display:none}
.board:fullscreen{display:flex;flex-direction:column;height:100vh;width:100vw;padding:2.2vh 2.2vw;gap:1.6vh;border-top:0;border-radius:0;overflow:hidden;background:linear-gradient(180deg,#e6f4fa,#fbf6ea)}
.board:fullscreen .bexit{display:inline-flex}
.board:fullscreen .bh h2{font-size:clamp(26px,4.6vh,50px);margin:0}
.board:fullscreen .bh small{font-size:clamp(17px,2.2vh,24px)}
.board:fullscreen .bgrid{flex:1;min-height:0;gap:1.6vh 1.2vw;grid-template-rows:repeat(2,minmax(0,1fr))}
.board:fullscreen .bc{min-height:0;gap:1vh;padding:1.4vh 1.2vw 1.6vh;border-top-width:8px}
.board:fullscreen .bc h3{font-size:clamp(20px,3vh,32px)}
.board:fullscreen .bc h3 img{height:clamp(32px,5vh,52px)}
.board:fullscreen .edit{display:none}
.board:fullscreen .bchip{font-size:clamp(17px,2.4vh,26px)}
.board:fullscreen .br{display:flex;flex-direction:column;min-height:0;flex:1}
.board:fullscreen .br small{font-size:clamp(17px,2vh,22px)}
.board:fullscreen .br p{flex:1;min-height:0;overflow:auto;font-size:clamp(18px,2.6vh,30px);line-height:1.5;padding:.8vh 1vw}

/* 친구와 이야기하기 페이지 */
.sharefoot{display:flex;justify-content:center;gap:14px;padding-top:6px}
.talk{display:flex;flex-direction:column;gap:22px;max-width:1100px;margin:0 auto;width:100%}
.talkhead{display:flex;align-items:center;gap:20px;justify-content:center;text-align:left}
.talkhead img{height:120px;width:auto}
.talkhead h2{font-size:clamp(30px,3.4vw,46px)}.talkhead p{font-size:21px;color:var(--ink2);font-weight:600;margin-top:4px}
.tsteps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
@media(max-width:900px){.tsteps{grid-template-columns:1fr 1fr}}
.ts{--cc:var(--teal);background:#fff;border:3px solid color-mix(in srgb,var(--cc) 30%,#fff);border-top:8px solid var(--cc);border-radius:22px;padding:18px 18px 20px;display:flex;flex-direction:column;gap:8px;box-shadow:var(--sh)}
.ts.t2{--cc:var(--blue)}.ts.t3{--cc:#7a57c0}.ts.t4{--cc:var(--acc2)}
.ts span{width:46px;height:46px;border-radius:50%;background:var(--cc);color:#fff;display:grid;place-items:center;font-size:24px;font-weight:800}
.ts b{font-size:22px}.ts p{font-size:19px;line-height:1.55;color:var(--ink2);font-weight:600}
.tbox{background:#fff;border-radius:26px;border-top:9px solid var(--acc2);box-shadow:var(--sh);padding:24px 28px;display:flex;flex-direction:column;gap:12px}
.tbox label{font-size:clamp(22px,2.2vw,30px);font-weight:800;line-height:1.35}
.tbox .tx{min-height:170px}
.cover .btn.big{min-width:clamp(150px,13vw,210px);min-height:clamp(46px,4.4vw,58px);font-size:clamp(18px,1.6vw,22px);padding:0 22px}
.left>*{flex-shrink:0}.tray{align-content:flex-start}.mk{flex:none}

/* 좁은 화면 넘침 방지 */
.work>*,.R,.R *{min-width:0}
.R{overflow-wrap:anywhere}
.tf select{width:100%}
.tf .btn.sm{padding:0 16px}
@media(max-width:760px){
  .rec{grid-template-columns:minmax(0,1fr) auto auto}
  .rec .tin{grid-column:1/-1;width:100%}
  .rec .note{grid-column:1}
  .btn.big{padding:0 24px;font-size:24px}
  .sharehead h2{font-size:26px}
}
@media(max-width:760px){
  #steps li:not(:last-child)::after{margin:0 3px}
  .stp{padding:4px 6px 4px 4px;gap:6px}
  .cur .stp span.t{font-size:16px}.cur .stp span.t small{display:none}
  #steps{padding:8px 8px}
}
.repScreen{overflow-x:clip}.shact .nm{max-width:100%}.bc h3{flex-wrap:wrap}

/* 시간 버튼 + 장면 팝업 */
button.bchip.t{cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:.15s}
button.bchip.t::before{content:"";border-left:11px solid #fff;border-top:7px solid transparent;border-bottom:7px solid transparent}
button.bchip.t:hover{background:var(--acc2);transform:translateY(-2px)}
.clipov{position:fixed;inset:0;z-index:200;background:rgba(15,25,35,.7);backdrop-filter:blur(5px);display:grid;place-items:center;padding:16px}
.clipbox{width:min(96vw,calc((100vh - 140px) * 16 / 9),1100px);background:var(--card);border-radius:24px;padding:16px 18px 14px;display:flex;flex-direction:column;gap:10px;box-shadow:0 40px 80px -30px #000}
.cliphead{display:flex;align-items:center;justify-content:space-between}.cliphead b{font-size:24px}
.clipv{position:relative;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#000}
.clipv iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.cliplink{font-size:17px;font-weight:700;color:var(--blue);align-self:flex-end}
.cliplink{align-self:flex-end;color:var(--ink);text-decoration:none;font-size:18px}

/* 장면 저장 직후: 설명 칸으로 시선 유도 */
@keyframes nudge{0%,100%{box-shadow:0 0 0 0 rgba(240,138,36,.0)}50%{box-shadow:0 0 0 9px rgba(240,138,36,.45)}}
.sm-in.nudge{border-color:var(--acc2);animation:nudge 1s ease-in-out 3}
.sm-in.nudge:focus{animation:none;box-shadow:0 0 0 6px rgba(255,213,74,.75)}
