/* BOUND launcher: a form on the left, a live preview on the right. Builds on site.css tokens. */
.lwrap { padding: 130px var(--gutter) 110px; }
.lhead h1 { font-size: clamp(44px, 5.4vw, 84px); letter-spacing: -.055em; margin-top: 16px; }
.lhead p { color: var(--ink-2); font-size: 17.5px; max-width: 36em; margin: 16px 0 0; }
.lgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: 24px; margin-top: 46px; align-items: start; }
.lform { display: grid; gap: 14px; }
.lstep { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 16px; }
.sh { display: flex; gap: 14px; align-items: center; }
.sh h2 { font-size: 22px; letter-spacing: -.03em; }
.sh p { margin: 4px 0 0; color: var(--mute); font-size: 14.5px; }
.sn { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 14px var(--mono); flex: none; }
.count { margin-left: auto; font: 600 13px var(--mono); padding: 6px 10px; border-radius: 999px; background: var(--tint); transition: background .3s, color .3s; }
.count.full { background: var(--accent); color: #fff; }
.row2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.fld { display: grid; gap: 7px; }
.fld > span { font-size: 13.5px; font-weight: 550; color: var(--ink-2); }
.fld em { font-style: normal; color: var(--mute); font-weight: 400; margin-left: 4px; }
.fld input, .fld textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font: 500 15.5px var(--sans); color: var(--ink); background: var(--paper); outline: none; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.fld input:focus, .fld textarea:focus, .tick:focus-within, .amt:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-l); }
.tick, .amt { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.tick b { padding-left: 14px; color: var(--mute); font: 600 15px var(--mono); }
.tick input, .amt input { border: 0 !important; box-shadow: none !important; padding-left: 6px; text-transform: uppercase; font-family: var(--mono); }
.amt input { text-transform: none; padding-left: 14px; font-size: 18px; }
.amt b { padding: 0 14px; font: 600 13px var(--mono); color: var(--mute); }
.hint { color: var(--mute); font-size: 13px; }
.hint.warn { color: #b54708; }

/* picture drop */
.drop { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; border: 1.5px dashed var(--line-2); background: var(--tint); cursor: pointer; transition: border-color .25s, background .25s, transform .3s var(--ease); }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-l); }
.drop.over { transform: scale(1.01); }
.dimg { width: 60px; height: 60px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--mute); flex: none; overflow: hidden; background-size: cover; background-position: center; }
.dimg svg { width: 26px; height: 26px; }
.dimg.has svg { display: none; }
.dtx { display: grid; gap: 2px; min-width: 0; }
.dtx b { font-size: 15px; } .dtx small { color: var(--mute); font-size: 13px; }
.dbtn { margin-left: auto; pointer-events: none; }

/* rule picker */
.rpick { display: grid; gap: 12px; }
.rpick .grp h6 { margin: 0 0 7px; font: 500 11.5px var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; display: flex; gap: 8px; align-items: center; }
.rpick .grp h6 i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.rpick .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.rpick button { border: 1px solid var(--line-2); background: var(--paper); border-radius: 999px; padding: 8px 13px 8px 11px; font: 550 14px var(--sans); color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), opacity .2s; }
.rpick button i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--c); transition: background .2s; }
.rpick button:hover:not(:disabled) { border-color: var(--c); transform: translateY(-1px); }
.rpick button[data-on] { background: var(--ink); border-color: var(--ink); color: #fff; }
.rpick button[data-on] i { background: var(--c); border-color: var(--c); }
.rpick button:disabled { opacity: .4; cursor: not-allowed; }
.rset { display: grid; gap: 8px; }
.rset:empty { display: none; }
.rs { border: 1px solid var(--line); border-radius: 14px; padding: 14px; animation: rsIn .55s var(--ease); border-left: 3px solid var(--c); }
@keyframes rsIn { from { opacity: 0; transform: translateY(-8px); } }
.rs header { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.rs header b { font-size: 15.5px; } .rs header p { margin: 2px 0 0; font-size: 13.5px; color: var(--mute); }
.rs .x { border: 0; background: var(--tint); width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--ink-2); flex: none; transition: background .2s, color .2s; }
.rs .x:hover { background: var(--bad); color: #fff; }
.rs .ps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px; margin-top: 10px; }
.rs .param { padding: 10px 12px; }

/* chain + graduation */
.chainsel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chainsel button { text-align: left; border: 1px solid var(--line-2); background: var(--paper); border-radius: 14px; padding: 12px 14px; cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; font-family: var(--sans); transition: border-color .2s, box-shadow .2s; }
.chainsel button i { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chainsel button b { font-size: 15px; } .chainsel button small { color: var(--mute); font-size: 12.5px; }
.chainsel button[data-on] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.chainsel button:disabled { opacity: .5; cursor: not-allowed; }
.toggle.wide { display: grid; grid-template-columns: 1fr 1fr; }
.toggle.wide button { padding: 10px 12px; }
.lgo { display: grid; gap: 10px; padding: 6px 4px; }
.btn.big { padding: 16px 22px; font-size: 16px; border-radius: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.solid:disabled:hover { background: var(--ink); border-color: var(--ink); box-shadow: none; }
.lgo p { margin: 0; color: var(--mute); font-size: 13.5px; }

/* preview */
.lprev { position: sticky; top: 96px; display: grid; gap: 12px; }
.pcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.pcoin { position: relative; width: 100%; height: 250px; margin: 4px auto 10px; display: flex; flex-direction: column; align-items: center; }
.pface { position: relative; width: 132px; height: 132px; flex: none; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 35% 30%, #e3ff9a, var(--lime) 60%, var(--lime-d)); box-shadow: inset 0 0 0 5px rgba(255,255,255,.7), 0 18px 40px -20px rgba(12, 26, 20, .55); display: grid; place-items: center; background-size: cover; background-position: center; transition: transform .8s var(--ease); }
.pcoin:hover .pface { transform: rotate(-6deg); }
.pface span { font: 800 50px var(--display); letter-spacing: -.05em; color: var(--ink); }
.pface.has span { display: none; }
.pface .sv, .pface .sh { position: absolute; background: var(--forest); box-shadow: 0 0 0 1.5px rgba(255,255,255,.35); }
.pface .sv { left: 50%; top: 0; bottom: 0; width: 14px; margin-left: -7px; } .pface .sh { top: 50%; left: 0; right: 0; height: 14px; margin-top: -7px; }
.pknot { width: 18px; height: 16px; border-radius: 50%; background: var(--forest); margin-top: -9px; z-index: 2; flex: none; }
.ptags { display: flex; justify-content: center; gap: 6px; margin-top: -2px; min-height: 90px; }
.ptags i { position: relative; display: block; width: 58px; height: 74px; margin-top: 18px; padding: 22px 5px 0; background: var(--paper); border: 1.5px solid var(--line-2); clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px); font: 700 10.5px/1.15 var(--display); font-style: normal; text-align: center; letter-spacing: -.01em; color: var(--ink); transform-origin: 50% -18px; animation: ptag 3.4s ease-in-out infinite, rsIn .6s var(--ease); animation-delay: var(--dl), 0s; }
.ptags i::before { content: ""; position: absolute; left: 50%; top: 7px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--c); }
@keyframes ptag { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.pname { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; }
.pname h3 { font-size: 26px; letter-spacing: -.035em; overflow-wrap: anywhere; }
.ptick { font: 600 14px var(--mono); color: var(--mute); }
.pdesc { text-align: center; color: var(--ink-2); font-size: 14.5px; margin: 6px 0 0; overflow-wrap: anywhere; }
.pmeta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pmeta span { font: 500 12px var(--mono); padding: 5px 9px; border-radius: 8px; background: var(--tint); display: inline-flex; align-items: center; gap: 6px; }
.pmeta i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.pcard h5 { margin: 20px 0 8px; font: 500 11.5px var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.prules { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.prules li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px; background: var(--tint); font-size: 14px; animation: rsIn .5s var(--ease); }
.prules li i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-top: 5px; }
.prules li b { display: block; font-size: 14.5px; } .prules li span { color: var(--ink-2); }
.prules .none { grid-template-columns: 1fr; color: var(--mute); }
.psim { background: var(--dark); color: #fff; border-color: var(--dark); }
.psim header { display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; }
.psim header .mono { font-size: 11.5px; color: var(--dark-mute); }
.psim .big { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 12px; }
.psim .big > b { font: 700 54px var(--sans); letter-spacing: -.05em; color: #ff7b72; line-height: 1; }
.psim .big span { color: #b9bfca; font-size: 14px; } .psim .big span b { color: #fff; }
.psim .bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.psim .bar div { background: var(--ok); transition: width .6s var(--ease); } .psim .bar div + div { background: var(--bad); }
.psim ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.psim li { display: flex; justify-content: space-between; gap: 10px; font: 400 12.5px var(--mono); padding: 7px 10px; border-radius: 8px; background: rgba(255, 255, 255, .05); color: #c9ced8; }
.psim li b { color: #fff; font-weight: 600; }
.psim small { display: block; margin-top: 12px; color: var(--dark-mute); font-size: 12px; }
.foot.slim { padding: 22px var(--gutter); }
@media (max-width: 960px) { .lgrid { grid-template-columns: minmax(0, 1fr); } .lprev { position: relative; top: 0; } }
@media (max-width: 560px) { .row2, .chainsel, .toggle.wide { grid-template-columns: minmax(0, 1fr); } .dbtn { display: none; } }
.pface span { position: absolute; left: 14%; top: 10%; font-size: 34px; } .lhead h1 em.s { color: var(--forest); }

/* ---------- live launching ---------- */
.chainpill.live i { background: var(--ok); }
.wbtn[data-on] { border-color: var(--line-2); font-family: var(--mono); font-size: 13px; }
.wbtn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(31,157,99,.18); }
.xf { margin-top: 10px; }
.xf input, .xf textarea { font-family: var(--mono); font-size: 13.5px; }
.problems { margin: 4px 0 0; padding: 12px 14px 12px 32px; border-radius: 12px; background: #fff3f0; color: #b8321a; font-size: 14px; display: grid; gap: 4px; }
.steps { list-style: none; margin: 0; padding: 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 8px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 14.5px; }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); font: 600 12px var(--mono); flex: none; }
.steps li[data-state="now"] { color: var(--ink); font-weight: 600; }
.steps li[data-state="now"]::before { background: var(--lime); animation: pulse 1.2s ease-in-out infinite; }
.steps li[data-state="done"] { color: var(--ink-2); }
.steps li[data-state="done"]::before { content: "✓"; background: var(--forest); color: #fff; }
.steps a { color: var(--accent); text-decoration: underline; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(200,245,96,.35); } }
.done { display: grid; gap: 8px; justify-items: start; padding: 16px; border-radius: 14px; background: var(--forest); color: #fff; animation: rsIn .6s var(--ease); }
.done b { font: 700 19px var(--display); } .done span { color: #c3d3ca; font-size: 14px; } .done a:not(.btn) { color: var(--lime); text-decoration: underline; }
.wmodal { position: fixed; inset: 0; z-index: 90; background: rgba(12,26,20,.4); display: grid; place-items: center; padding: 16px; }
.wmodal[hidden] { display: none; }
.wcard { width: min(400px, 100%); background: var(--bg); border-radius: 20px; padding: 18px; display: grid; gap: 12px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.wcard header { display: flex; justify-content: space-between; align-items: center; } .wcard header b { font: 700 20px var(--display); }
.wx { border: 0; background: var(--tint); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.wlist { display: grid; gap: 6px; }
.wlist button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); font: 600 15px var(--sans); cursor: pointer; transition: border-color .2s; }
.wlist button:hover { border-color: var(--ink); } .wlist img { width: 28px; height: 28px; border-radius: 8px; }
.wnote { margin: 0; color: var(--mute); font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translate(-50%, 20px); opacity: 0; max-width: min(560px, calc(100% - 32px)); padding: 13px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14.5px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); transition: opacity .3s, transform .5s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.bad { background: #8a2412; } .toast.good { background: var(--forest); }

[hidden] { display: none !important; }

.warnbox { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff3f0; color: #9a2a14; font-size: 14px; }

.agree { margin: 10px 0 0; color: var(--mute); font-size: 13px; } .agree a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
