/* ===================================================================
   Hanbok Coloring Studio · Danbi Lab
   a lookbook in cream and ink, 2026
   =================================================================== */
:root{
  --paper:#F3EDE2;
  --paper-2:#FBF7EF;
  --paper-3:#E9E0D1;
  --card:#FFFDF8;
  --ink:#141210;
  --ink-2:#3B332B;
  --muted:#8B7F70;
  --muted-2:#A2957F;
  --gold:#A8874E;
  --seal:#B4402F;
  --sage:#5C7156;
  --line:rgba(20,18,16,.16);
  --line-2:rgba(20,18,16,.09);
  --shadow:0 30px 70px -40px rgba(50,36,20,.55);
  --sans:"Plus Jakarta Sans",Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Malgun Gothic",sans-serif;
  --serif:"Fraunces",Georgia,"Times New Roman",serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font:400 16px/1.6 var(--sans);-webkit-font-smoothing:antialiased;
  padding-bottom:calc(76px + env(safe-area-inset-bottom,0px));
}
img{display:block;max-width:100%}
a{color:inherit}
button{font-family:inherit}
h1,h2,h3{margin:0;line-height:1.1;letter-spacing:-.02em;font-weight:500}
h1{font:500 clamp(38px,6vw,68px)/1.02 var(--serif);letter-spacing:-.035em}
h1 em{font-style:italic;color:var(--seal)}
h2{font:500 clamp(24px,3vw,34px)/1.15 var(--serif)}
h3{font-size:15px;font-weight:600;letter-spacing:-.01em}
p{margin:0 0 14px}
.wrap{width:min(1200px,100% - 44px);margin-inline:auto}
@media (max-width:620px){.wrap{width:min(1200px,100% - 28px)}}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ------------------------------------------------------------ topbar */
.topbar{position:sticky;top:0;z-index:60;background:rgba(243,237,226,.9);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--line-2)}
.topbar-in{width:min(1200px,100% - 44px);margin-inline:auto;display:flex;align-items:center;gap:14px;height:70px}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;flex:none}
.brand-mark{width:28px;height:28px;color:var(--gold)}
.brand-mark svg{width:100%;height:100%;display:block}
.brand-text{display:flex;flex-direction:column;line-height:1.2}
.brand-text b{font:600 16px/1.2 var(--serif);letter-spacing:-.01em}
.brand-text small{font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.danbi-back{display:inline-flex;align-items:center;gap:6px;padding:7px 12px 7px 10px;border:1px solid var(--line);border-radius:999px;background:rgba(255,253,248,.7);color:var(--ink-2);font-size:11.5px;font-weight:600;text-decoration:none;white-space:nowrap}
.danbi-back:hover{border-color:rgba(180,64,47,.4);color:var(--seal)}
.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.pill-btn{width:32px;height:32px;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--ink-2);font:600 13px/1 var(--sans);cursor:pointer}
.pill-btn:hover{border-color:var(--seal);color:var(--seal)}
.lang{display:inline-flex;padding:3px;border-radius:999px;background:rgba(20,18,16,.06)}
.lang button{border:0;background:transparent;border-radius:999px;padding:6px 11px;font:600 10.5px/1 var(--sans);letter-spacing:.06em;color:var(--muted);cursor:pointer}
.lang button[aria-pressed="true"]{background:var(--card);color:var(--ink);box-shadow:0 2px 8px -4px rgba(40,26,14,.4)}
@media (max-width:560px){.danbi-back-tx{display:none}.danbi-back{padding:8px;width:34px;height:34px;justify-content:center}.brand-text small{display:none}}

/* -------------------------------------------------------------- hero */
.hero{display:grid;grid-template-columns:1.02fr .98fr;gap:clamp(20px,4vw,54px);align-items:center;padding:clamp(30px,5vw,64px) 0 clamp(22px,3vw,36px)}
.eyebrow{display:inline-flex;align-items:center;gap:9px;margin:0 0 16px;font-size:10.5px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--gold)}
.eyebrow .dot{width:5px;height:5px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 4px rgba(168,135,78,.14)}
.lede{font-size:clamp(15px,1.6vw,17px);line-height:1.72;color:var(--ink-2);max-width:33em;margin-top:18px}
.lede b{font-weight:600;color:var(--ink)}
.hero-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:24px}
.btn-primary{display:inline-flex;align-items:center;gap:9px;padding:12px 20px;border:0;border-radius:999px;background:var(--ink);color:var(--paper-2);font:600 13.5px/1 var(--sans);cursor:pointer;box-shadow:0 16px 30px -22px rgba(20,18,16,.9)}
.btn-primary svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}
.btn-primary:hover{background:#2B2420}
.hero-note{font-size:11.5px;color:var(--muted);letter-spacing:.02em}
.hero-fan{position:relative;height:clamp(260px,32vw,380px)}
.fan-card{position:absolute;margin:0;background:#fff;padding:7px 7px 24px;border-radius:2px;box-shadow:var(--shadow)}
.fan-card img{width:100%;height:100%;object-fit:cover;border-radius:1px}
.fan-1{width:44%;height:78%;left:2%;top:12%;transform:rotate(-7deg)}
.fan-2{width:46%;height:82%;left:27%;top:4%;transform:rotate(1.5deg);z-index:2}
.fan-3{width:40%;height:72%;right:1%;top:16%;transform:rotate(7deg)}
@media (max-width:900px){
  .hero{grid-template-columns:1fr}
  .hero-fan{height:230px;order:-1}
}

/* ------------------------------------------------------------- grid */
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.6vw,18px);margin-top:clamp(14px,2vw,26px)}
@media (max-width:980px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:680px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.card{
  position:relative;border:1px solid var(--line-2);border-radius:14px;background:var(--card);
  padding:0;overflow:hidden;cursor:pointer;text-align:left;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
  display:flex;flex-direction:column;
}
.card:hover{transform:translateY(-3px);box-shadow:0 26px 40px -32px rgba(50,36,20,.7);border-color:rgba(168,135,78,.4)}
.card .sheet{position:relative;display:block;aspect-ratio:4/5;overflow:hidden;background:var(--paper-2)}
.card .sheet img{width:100%;height:100%;object-fit:cover;object-position:top center;transition:transform .4s ease}
.card:hover .sheet img{transform:scale(1.03)}
.card .cbody{display:block;padding:11px 12px 12px}
.card h3{font:500 14px/1.25 var(--serif);letter-spacing:-.01em;margin-bottom:2px}
.card .crow2{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:4px}
.card .type{font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.card .dots{display:inline-flex;gap:3px}
.card .dots i{width:5px;height:5px;border-radius:50%;background:rgba(20,18,16,.14)}
.card .dots i.on{background:var(--gold)}
.card .num{position:absolute;top:8px;left:10px;font:600 9px/1 var(--sans);letter-spacing:.1em;color:rgba(20,18,16,.4);background:rgba(255,253,248,.86);padding:3px 6px;border-radius:4px}
.gallery-foot{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:26px;font-size:11px;color:var(--muted);letter-spacing:.02em}
.gallery-foot b{letter-spacing:.18em;color:var(--ink-2)}

/* ------------------------------------------------- printed collection band */
.shopband{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);gap:clamp(18px,3.4vw,42px);align-items:center;margin:44px 0 6px;padding:clamp(18px,2.8vw,34px);border-radius:18px;background:linear-gradient(180deg,rgba(255,253,248,.9),rgba(251,247,239,.9));box-shadow:inset 0 0 0 1px var(--line-2),0 26px 60px -46px rgba(50,36,20,.5)}
.shopband-art{display:grid;grid-template-columns:.62fr 1fr;gap:12px;align-items:center}
.shopband-art img{border-radius:10px;box-shadow:0 18px 38px -26px rgba(50,36,20,.55),0 0 0 1px var(--line-2)}
.sb-cover{width:100%;height:auto}
.sb-inside{width:100%;height:auto}
.shopband-copy .eyebrow{margin-bottom:10px}
.shopband-copy h2{font:500 clamp(22px,2.6vw,31px)/1.14 var(--serif);letter-spacing:-.025em;margin-bottom:12px}
.sb-lede{font-size:13.5px;line-height:1.6;color:var(--ink-2);margin-bottom:18px}
.sb-buy{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.sb-btn{display:inline-flex;align-items:center;gap:9px;padding:13px 20px;border-radius:999px;background:var(--seal);color:#FBF7EF;text-decoration:none;font-size:13.5px;font-weight:600;letter-spacing:-.01em;box-shadow:0 14px 26px -16px rgba(180,64,47,.85);transition:transform .16s,box-shadow .16s}
.sb-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.sb-btn:hover{transform:translateY(-1px);box-shadow:0 18px 30px -16px rgba(180,64,47,.9)}
.sb-alt{font-size:11.5px;color:var(--muted);margin:0;letter-spacing:.02em}
.sb-alt a{color:var(--ink-2);text-decoration:underline;text-underline-offset:2px;text-decoration-color:var(--line)}
.sb-alt a:hover{color:var(--seal)}
.sb-note{margin:14px 0 0;font-size:11px;line-height:1.55;color:var(--muted);letter-spacing:.01em}
@media (max-width:820px){
  .shopband{grid-template-columns:1fr;gap:18px;margin-top:34px}
  .shopband-art{grid-template-columns:.5fr 1fr}
  .sb-buy{gap:10px}
}

/* ------------------------------------------------------------- views */
.view{display:none;scroll-margin-top:80px}
.view.on{display:block;animation:fade .3s ease both}
@keyframes fade{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}

/* ------------------------------------------------------------ studio */
.studio-head{display:flex;align-items:flex-end;gap:18px;padding:clamp(16px,2.4vw,26px) 0 clamp(12px,1.8vw,18px);flex-wrap:wrap}
.back-btn{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink-2);font:600 12px/1 var(--sans);cursor:pointer;flex:none}
.back-btn svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.back-btn:hover{border-color:var(--seal);color:var(--seal)}
.studio-title{display:flex;flex-direction:column;gap:2px;min-width:0}
.studio-title .num{font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);font-weight:700}
.studio-title h2{font-size:clamp(20px,2.6vw,28px)}
.studio-title .type{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.studio-nav{margin-left:auto;display:flex;gap:6px}
.round{width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--ink-2);cursor:pointer;font-size:14px}
.round:hover{border-color:var(--seal);color:var(--seal)}

.studio-body{display:grid;grid-template-columns:minmax(0,1fr) 326px;gap:clamp(12px,1.6vw,20px);align-items:start}
.studio-body>*{min-width:0}
@media (max-width:980px){
  .studio-body{grid-template-columns:minmax(0,1fr)}
  .panel{order:2}
}
.stagecol{display:flex;flex-direction:column;gap:10px;min-width:0}
.stage{
  position:relative;width:100%;height:clamp(420px,68vh,780px);
  border-radius:16px;overflow:hidden;background:#E4DACA;border:1px solid var(--line-2);
  box-shadow:0 30px 60px -50px rgba(50,36,20,.9);
  touch-action:none;
}
.stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;cursor:crosshair;touch-action:none}
.stage canvas.is-hand{cursor:grab}
.refpeek{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:4;background:#fff}
.refpeek[hidden]{display:none}
.loading{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:rgba(243,237,226,.9);font-size:12px;color:var(--muted)}
.loading[hidden]{display:none}
.spinner{width:24px;height:24px;border-radius:50%;border:2px solid rgba(168,135,78,.25);border-top-color:var(--gold);animation:spin .9s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.brush-cursor{position:absolute;border-radius:50%;border:1.4px solid rgba(20,18,16,.55);box-shadow:0 0 0 1px rgba(255,255,255,.8);pointer-events:none;transform:translate(-50%,-50%);z-index:3}
.brush-cursor[hidden]{display:none}

.zoombar{position:absolute;left:10px;bottom:10px;z-index:5;display:flex;align-items:center;gap:2px;padding:4px;border-radius:999px;background:rgba(255,253,248,.94);border:1px solid var(--line-2);box-shadow:0 10px 22px -16px rgba(40,26,14,.7);backdrop-filter:blur(8px)}
.zoombar button{min-width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;border-radius:999px;cursor:pointer;color:var(--ink-2);font-size:16px;line-height:1}
.zoombar button:hover{background:rgba(168,135,78,.16);color:#6E5327}
.zoombar button.is-on{background:var(--ink);color:var(--paper-2)}
.zoombar .zoom-level{min-width:50px;font-size:11px;font-weight:700}
.zoombar svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.zsep{width:1px;height:16px;background:var(--line-2);margin:0 3px}
.stage-hint{position:absolute;left:50%;top:10px;transform:translateX(-50%);z-index:5;margin:0;padding:5px 12px;border-radius:999px;background:rgba(20,18,16,.6);color:#FBF7EF;font-size:10.5px;white-space:nowrap;pointer-events:none;transition:opacity .3s}
.stage-hint.is-faint{opacity:0}
@media (max-width:560px){.stage-hint{display:none}}

.stagebar{display:flex;gap:6px;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;border:1px solid var(--line-2);background:rgba(255,253,248,.7);color:var(--ink-2);font:500 11.5px/1 var(--sans);cursor:pointer}
.chip svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.chip:hover{border-color:rgba(168,135,78,.5);color:#6E5327}
.chip:disabled{opacity:.35;cursor:default}
@media (max-width:520px){.chip{padding:8px 9px}.chip span{font-size:10.5px}}

/* -------------------------------------------------------------- panel */
.panel{display:flex;flex-direction:column;gap:0;min-width:0;border:1px solid var(--line-2);border-radius:16px;background:var(--card);box-shadow:0 24px 50px -46px rgba(50,36,20,.7);overflow:hidden}
.ctrl{padding:14px 14px 13px;border-bottom:1px solid var(--line-2);display:flex;flex-direction:column;gap:10px}
.ctrl:last-child{border-bottom:0}
.ctrl-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.ctrl-head h3{font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.ctrl-head em{font-size:11px;font-style:normal;font-weight:600;color:var(--gold)}
.tools{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.tool{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 2px 6px;border:1px solid var(--line-2);border-radius:10px;background:rgba(243,237,226,.5);color:var(--ink-2);font-size:9px;font-weight:600;cursor:pointer;line-height:1.1;transition:background .14s,border-color .14s,color .14s}
.tool svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.tool:hover{border-color:rgba(168,135,78,.5)}
.tool.on{background:var(--ink);border-color:var(--ink);color:var(--paper-2)}
.switchrow{display:flex;align-items:flex-start;gap:9px;cursor:pointer}
.switchrow input{position:absolute;opacity:0;pointer-events:none}
.sw-track{flex:none;width:36px;height:21px;border-radius:999px;background:#DDD3C2;position:relative;transition:background .18s;margin-top:1px}
.sw-track i{position:absolute;left:3px;top:3px;width:15px;height:15px;border-radius:50%;background:#fff;transition:transform .18s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.switchrow input:checked + .sw-track{background:var(--sage)}
.switchrow input:checked + .sw-track i{transform:translateX(15px)}
.sw-text{display:flex;flex-direction:column}
.sw-text b{font-size:11.5px;font-weight:600}
.sw-text small{font-size:10px;color:var(--muted);line-height:1.35}
.slider{display:grid;grid-template-columns:58px 1fr;align-items:center;gap:10px;font-size:11px;color:var(--muted)}
.slider input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:20px;background:transparent;cursor:pointer}
.slider input[type=range]::-webkit-slider-runnable-track{height:3.5px;border-radius:999px;background:#E2D8C7}
.slider input[type=range]::-moz-range-track{height:3.5px;border-radius:999px;background:#E2D8C7}
.slider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:15px;height:15px;border-radius:50%;background:var(--ink);border:2px solid #FFFDF8;margin-top:-5.5px;box-shadow:0 2px 5px rgba(40,26,14,.35)}
.slider input[type=range]::-moz-range-thumb{width:13px;height:13px;border-radius:50%;background:var(--ink);border:2px solid #FFFDF8}
.themes{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.themes::-webkit-scrollbar{display:none}
.theme{flex:0 0 auto;padding:5px 9px;border-radius:999px;border:1px solid var(--line-2);background:transparent;font-size:10px;font-weight:600;color:var(--muted);cursor:pointer;white-space:nowrap}
.theme.on{background:rgba(168,135,78,.14);border-color:rgba(168,135,78,.55);color:#6E5327}
.palette{display:grid;grid-template-columns:repeat(9,1fr);gap:4px}
.sw{aspect-ratio:1;border-radius:5px;border:1px solid rgba(20,18,16,.14);cursor:pointer;padding:0;transition:transform .12s}
.sw:hover{transform:scale(1.12)}
.sw[aria-pressed="true"]{box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--ink)}
.mixrow{display:grid;grid-template-columns:16px minmax(0,1fr) auto auto;align-items:center;gap:7px;font-size:11px;color:var(--ink-2);cursor:pointer}
.mixdot{width:15px;height:15px;border-radius:50%;border:1px solid rgba(20,18,16,.14);background:#C0392B}
.mixrow input[type=color]{width:25px;height:25px;padding:0;border:1px solid var(--line-2);border-radius:7px;background:transparent;cursor:pointer}
.mixrow input[type=color]::-webkit-color-swatch-wrapper{padding:2px}
.mixrow input[type=color]::-webkit-color-swatch{border:0;border-radius:4px}
.mixrow em{font-style:normal;font-size:10px;color:var(--muted)}
.actions{display:grid;gap:6px}
.act{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--line-2);border-radius:10px;background:transparent;color:var(--ink-2);font:600 12px/1.2 var(--sans);cursor:pointer;text-align:left}
.act svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.act small{margin-left:auto;font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-2)}
.act:hover{border-color:rgba(168,135,78,.5)}
.act.primary{background:var(--seal);border-color:var(--seal);color:#FFF6EC}
.act.primary small{color:rgba(255,246,236,.7)}
.act.primary:hover{background:#9E3627;border-color:#9E3627}

/* -------------------------------------------------------------- modals */
.modal{position:fixed;inset:0;z-index:2147483300;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(20,18,16,.5);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.modal[hidden]{display:none}
.sheetbox{position:relative;width:min(940px,100%);max-height:calc(100vh - 32px);overflow:auto;background:var(--paper);border-radius:18px;padding:22px;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;box-shadow:0 40px 90px -40px rgba(20,12,6,.8)}
.sheetbox.narrow{grid-template-columns:1fr;width:min(720px,100%)}
.modal-x{position:absolute;right:10px;top:10px;width:34px;height:34px;border:0;border-radius:50%;background:rgba(20,18,16,.06);color:var(--ink-2);font-size:19px;line-height:1;cursor:pointer;z-index:2}
.modal-x:hover{background:rgba(180,64,47,.14);color:var(--seal)}
.cardprev{background:#EFE7D8;border-radius:12px;padding:10px;display:flex;align-items:center;justify-content:center;min-height:280px}
.cardprev canvas{max-height:60vh;max-width:100%;width:auto;box-shadow:0 18px 40px -26px rgba(40,26,14,.8)}
.cardform{display:flex;flex-direction:column}
.cardform h3{font:500 24px/1.2 var(--serif);margin-bottom:6px}
.hint{font-size:11.5px;color:var(--muted);line-height:1.6;margin-bottom:14px}
.field{display:flex;flex-direction:column;gap:5px;margin-bottom:10px;font-size:10.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.field input{font:400 14px/1.4 var(--sans);padding:10px 12px;border-radius:9px;border:1px solid var(--line);background:#fff;color:var(--ink)}
.field input:focus{outline:none;border-color:var(--seal);box-shadow:0 0 0 3px rgba(180,64,47,.14)}
.row{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}
.row .act{flex:1 1 120px;justify-content:center}
@media (max-width:760px){
  .sheetbox{grid-template-columns:1fr;padding:18px}
  .cardprev canvas{max-height:44vh}
}
.cmpcol{display:flex;flex-direction:column;min-width:0}
.cmpcol h3{font:500 22px/1.25 var(--serif);margin-bottom:12px}
.cmp{position:relative;border-radius:12px;overflow:hidden;background:#fff;box-shadow:inset 0 0 0 1px var(--line-2);touch-action:none}
.cmp canvas{display:block;width:100%;height:auto}
.cmp-top{position:absolute;inset:0;overflow:hidden;clip-path:inset(0 48% 0 0)}
.cmp-top canvas{width:100%;height:100%}
.cmp-handle{position:absolute;top:0;bottom:0;left:52%;width:2px;background:#fff;pointer-events:none;box-shadow:0 0 0 1px rgba(20,18,16,.2)}
.cmp-handle span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:38px;height:38px;border-radius:50%;background:#fff;color:var(--seal);display:flex;align-items:center;justify-content:center;font-size:14px;box-shadow:0 6px 16px rgba(20,12,6,.28)}
.cmp input[type=range]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize;margin:0}
.replay-stage{border-radius:12px;overflow:hidden;background:#fff;box-shadow:inset 0 0 0 1px var(--line-2)}
.replay-stage canvas{display:block;width:100%;height:auto}
.replay-row{align-items:center}
.replay-progress{flex:1;height:5px;border-radius:999px;background:#E2D8C7;overflow:hidden;min-width:100px}
.replay-progress i{display:block;height:100%;width:0;background:var(--seal);transition:width .1s linear}

/* --------------------------------------------------------------- help */
.help-sheet{position:fixed;inset:0;z-index:2147483300;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(20,18,16,.45)}
.help-sheet[hidden]{display:none}
.help-card{position:relative;width:min(520px,100%);background:var(--paper);border-radius:18px;padding:24px;box-shadow:0 40px 90px -40px rgba(20,12,6,.8);max-height:86vh;overflow:auto}
.help-card h3{font:500 22px/1.2 var(--serif);margin-bottom:12px}
.help-list{margin:0;padding:0 0 0 18px;display:grid;gap:9px;font-size:13px;color:var(--ink-2);line-height:1.55}
.help-list b{color:var(--ink)}

/* -------------------------------------------------------------- toast */
.toast{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom,0px));transform:translate(-50%,12px);z-index:2147483400;padding:10px 17px;border-radius:999px;background:rgba(20,18,16,.94);color:#FBF7EF;font-size:12px;max-width:86vw;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.toast.is-on{opacity:1;transform:translate(-50%,0)}

@media (max-width:980px){
  .stage{height:min(54vh,470px)}
}
@media (max-width:640px){
  .stage{height:min(48vh,420px)}
  .studio-head{padding-top:10px}
}

@media (prefers-reduced-motion:reduce){*{transition:none !important;animation:none !important}}

/* ------------------------------------- K-Hip Seoul preview band */
.hipband{margin:40px 0 6px;padding:clamp(18px,2.8vw,34px);border-radius:18px;
  background:linear-gradient(180deg,#0d1a2e 0%,#132742 100%);color:#F6ECDB;
  box-shadow:inset 0 0 0 1px rgba(231,205,166,.18),0 26px 60px -46px rgba(4,10,22,.8)}
.hipband-head{max-width:58ch;margin-bottom:22px}
.hipband .eyebrow{color:#E7CDA6;margin-bottom:10px}
.hipband .eyebrow .dot{background:#E7CDA6;box-shadow:0 0 0 4px rgba(231,205,166,.16)}
.hipband h2{font:500 clamp(21px,2.5vw,30px)/1.16 var(--serif);letter-spacing:-.02em;color:#F6ECDB;margin:0 0 10px}
.hip-lede{margin:0;font-size:13.5px;line-height:1.65;color:rgba(246,236,219,.76)}
.hipband .card{color:var(--ink);background:var(--card)}
.hipband .card h3{color:var(--ink)}
.hip-buy{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin-top:22px}
.hip-buy .sb-alt{color:rgba(246,236,219,.72)}
.hip-buy .sb-alt a{color:#F6ECDB;text-decoration-color:rgba(246,236,219,.45)}
.hip-buy .sb-alt a:hover{color:#E7CDA6}
.hip-buy .sb-note{color:rgba(246,236,219,.6);margin:0;flex-basis:100%}
@media (min-width:760px){.hip-buy .sb-note{flex-basis:auto;margin-left:auto}}
.hipband .card .sheet{aspect-ratio:2/3;background:#fff}
.hipband .card .sheet img{object-fit:contain;object-position:center}

/* ------------------------------------- launch gift: LAUNCHFREE (first 15 free) */
.freebie{display:flex;align-items:center;gap:12px 14px;flex-wrap:wrap;
  margin-top:18px;padding:13px 15px;border-radius:14px;
  border:1.5px dashed rgba(231,205,166,.46);
  background:linear-gradient(112deg,rgba(231,205,166,.14) 0%,rgba(231,205,166,.06) 60%,rgba(231,205,166,.12) 100%);
  color:#F6ECDB}
.fb-em{flex:none;width:34px;height:34px;border-radius:11px;display:grid;place-items:center;font-size:16px;line-height:1;
  background:rgba(246,236,219,.1);border:1px solid rgba(231,205,166,.28)}
.fb-txt{flex:1 1 240px;min-width:0}
.fb-kicker{margin:0 0 3px;font-size:8.8px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:#E7CDA6}
.fb-text{margin:0;font-size:12px;line-height:1.6;color:rgba(246,236,219,.82)}
.fb-text b{color:#F6ECDB;font-weight:600}
.fb-text a{color:#E7CDA6;text-underline-offset:2px;text-decoration-color:rgba(231,205,166,.45)}
.fb-text a:hover{color:#FBEFD8}
.fb-copy{flex:none;appearance:none;cursor:pointer;font-family:var(--sans);font-size:11.5px;font-weight:700;letter-spacing:.02em;
  padding:9px 14px;border-radius:999px;color:#0d1a2e;background:#E7CDA6;border:0;
  box-shadow:0 12px 22px -16px rgba(0,0,0,.9);
  transition:transform .16s,background .16s,color .16s}
.fb-copy:hover{transform:translateY(-1px);background:#F3DFBC}
.fb-copy:focus-visible{outline:2px solid rgba(231,205,166,.7);outline-offset:2px}
.fb-copy.is-copied{background:#BFE3C9;color:#123524}
@media (max-width:560px){.fb-copy{width:100%}}
