@font-face { font-family: UI; src: url(fonts/gothica1-Regular.woff2) format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: UI; src: url(fonts/gothica1-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: block; }
@font-face { font-family: UI; src: url(fonts/gothica1-ExtraBold.woff2) format('woff2'); font-weight: 800; font-display: block; }
@font-face { font-family: Inter; src: url(fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: block; }
@font-face { font-family: Serif; src: url(fonts/instrument-italic.woff2) format('woff2'); font-style: italic; font-display: block; }
@font-face { font-family: Mono; src: url(fonts/geistmono.woff2) format('woff2'); font-weight: 100 900; font-display: block; }
:root { --bg: #ecebe7; --ink: #181613; --mute: #8a857c; --line: rgba(0,0,0,.09); --ac: #161616; --sans: Inter, UI, system-ui, sans-serif; --kr: UI, Inter, system-ui, sans-serif; --mono: Mono, ui-monospace, monospace; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); font: 400 15px/1.5 var(--kr); -webkit-font-smoothing: antialiased; }
a { color: inherit; } [hidden] { display: none !important; } button { font: inherit; color: inherit; }
.top, .intro, .app, .how, .foot { max-width: 1320px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 2px; }
.brand { display: flex; align-items: center; gap: 9px; } .brand b { font: 800 18px var(--kr); letter-spacing: -.03em; }
.brand b::before { content: ''; display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: -2px; box-shadow: inset 0 0 0 2.5px var(--ink); background: radial-gradient(circle, var(--ac) 0 3px, transparent 3.5px); }
.brand i { font: 500 12px var(--mono); color: var(--mute); font-style: normal; }
.gh { font: 600 14px var(--sans); text-decoration: none; }
h1 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; word-break: keep-all; }
h1 .q { font: 800 44px/1.08 var(--kr); letter-spacing: -.045em; word-spacing: .06em; } h1 em { font: italic 400 28px/1.1 Serif, serif; letter-spacing: -.02em; color: #4d4943; }
.btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 11px; font: 800 13.5px var(--kr); box-shadow: inset 0 0 0 1.5px var(--ink); white-space: nowrap; }
.btn.dark { background: var(--ink); color: #fff; }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding-top: 40px; } .how h3 { margin: 0 0 6px; font: 800 15px var(--kr); } .how p { margin: 0; font-size: 14px; color: #4d4943; word-break: keep-all; }
.foot { padding-top: 26px; padding-bottom: 90px; font: 400 12.5px var(--sans); color: var(--mute); }
.toast { position: fixed; left: 50%; top: 22px; transform: translate(-50%, -20px); opacity: 0; background: var(--ink); color: #fff; font: 600 13.5px var(--kr); padding: 9px 16px; border-radius: 99px; transition: .25s; pointer-events: none; z-index: 50; } .toast.on { opacity: 1; transform: translate(-50%, 0); }
.lnk { all: unset; cursor: pointer; font: 700 13px var(--kr); color: #6b665d; text-decoration: underline; text-underline-offset: 3px; }
.seg { display: inline-flex; background: #fff; border-radius: 11px; padding: 3px; gap: 2px; box-shadow: 0 0 0 1px var(--line); } .seg button { all: unset; cursor: pointer; padding: 6px 11px; border-radius: 8px; font: 700 12.5px var(--kr); color: #6b665d; white-space: nowrap; } .seg button.on { background: var(--ink); color: #fff; } .seg button:disabled { opacity: .35; cursor: not-allowed; }
.cur { position: fixed; left: 0; top: 0; z-index: 99; pointer-events: none; }
.cur svg { position: absolute; left: -9px; top: -4px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); } .cur path { fill: #fff; stroke: #111; stroke-width: 1.4; stroke-linejoin: round; } .cur .closed { display: none; } .cur.down .open { display: none; } .cur.down .closed { display: block; }
.cur i { position: absolute; left: 26px; top: 26px; white-space: nowrap; font: 700 13px var(--kr); font-style: normal; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 99px; } .cur i:empty { display: none; }
.cur.flip i { left: auto; right: 14px; }
.intro { padding-top: 22px; } .lede { margin: 10px 0 0; max-width: 780px; color: #4d4943; word-break: keep-all; }
.seg button:not(.on):hover { color: var(--ink); }
.seg.sm button { padding: 5px 9px; font-size: 12px; }
.mini { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 99px; background: #f1eee8; font: 700 12.5px var(--kr); color: #5d584f; white-space: nowrap; } .mini:hover { filter: brightness(.96); }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.lb { font: 700 12.5px var(--kr); color: #5d584f; white-space: nowrap; min-width: 58px; }
.row { display: flex; align-items: center; gap: 10px; } .row .seg { background: #f1eee8; box-shadow: none; }
.hint { margin: -4px 0 0; min-height: 18px; font: 500 12px var(--kr); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rng input { flex: 1; width: auto; accent-color: var(--ink); } .rng output { width: 40px; text-align: right; }
.mini:disabled { opacity: .35; cursor: not-allowed; }
.tog { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border-radius: 99px; background: #f1eee8; font: 700 12.5px var(--kr); color: #5d584f; }
.tog i { width: 26px; height: 16px; border-radius: 99px; background: #cfcac0; position: relative; transition: background .2s; } .tog i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tog.on { background: var(--ink); color: #fff; } .tog.on i { background: #6fd6a8; } .tog.on i::after { transform: translateX(10px); }
.ph { display: flex; align-items: center; gap: 8px; } .ph b { font: 800 14px var(--kr); white-space: nowrap; } .ph .seg { background: #f1eee8; box-shadow: none; }
.xb { display: flex; gap: 6px; } .xb .btn { flex: 1; } .btn.wide { width: 100%; box-sizing: border-box; }
.card { background: #fff; border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -24px rgba(40,30,10,.4); min-height: 0; }
.cur.up i { top: auto; bottom: 22px; }
.brand b::before { border-radius: 4px; box-shadow: none; background: radial-gradient(circle, var(--ink) 0 1.6px, transparent 2px) 0 0 / 5px 5px, #f3efe6; box-shadow: inset 0 0 0 1px var(--line); }
.app { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; padding-top: 22px; height: 660px; }
body.film .app { height: 610px; }
.left { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; min-height: 0; }
.scard { display: flex; flex-direction: column; padding: 12px 14px 14px; gap: 10px; overflow: hidden; }
.sbar { display: flex; align-items: center; gap: 8px; } .sp { flex: 1; }
.stat { font: 600 12px var(--mono); color: var(--mute); white-space: nowrap; }
.pchips { display: flex; gap: 6px; flex-wrap: wrap; }
.pchips button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 3px; border-radius: 99px; background: #f1eee8; font: 700 12.5px var(--kr); color: #5d584f; white-space: nowrap; }
.pchips button img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; } .pchips button.on { background: var(--ink); color: #fff; } .pchips .own { padding-left: 11px; }
.stagebox { flex: 1; min-height: 0; display: grid; place-items: center; }
.stage { position: relative; border-radius: 10px; overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; box-shadow: 0 0 0 1px var(--line); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.orig { position: absolute; inset: 0; } .orig img { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.split { position: absolute; top: 0; bottom: 0; width: 0; pointer-events: none; }
.split i { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.split b { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); padding: 6px 10px; border-radius: 99px; background: #fff; color: var(--ink); font: 800 12px var(--kr); box-shadow: 0 2px 8px rgba(0,0,0,.3); white-space: nowrap; }
.split b::before { content: '◀ '; font-size: 9px; } .split b::after { content: ' ▶'; font-size: 9px; }
.split.edge i { opacity: 0; } .split.edge b { transform: translate(8px, -50%); }
.busy { position: absolute; right: 10px; top: 10px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(0,0,0,.15); border-top-color: var(--ink); opacity: 0; transition: opacity .2s; animation: spin .8s linear infinite; } .busy.on { opacity: 1; transition-delay: .25s; }
body.film .busy { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.inks { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inkl { display: flex; gap: 6px; flex-wrap: wrap; }
.inkl button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px var(--line); font: 700 12.5px var(--kr); color: #5d584f; white-space: nowrap; }
.inkl i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); } .inkl i b { width: 10px; height: 10px; border-radius: 50%; }
.inkl button.on { background: var(--ink); color: #fff; }
.cpk { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 4px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px var(--line); font: 700 12.5px var(--kr); color: #5d584f; cursor: pointer; }
.cpk::before { content: ''; width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); } .cpk input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.panel { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; overflow: hidden; }
.fx { width: 100%; background: #f1eee8 !important; box-shadow: none !important; } .fx button { flex: 1; text-align: center; }
.params { display: flex; flex-direction: column; gap: 10px; min-height: 108px; }
.params .seg { background: #f1eee8; box-shadow: none; }
.row output { font: 600 12px var(--mono); color: var(--ink); width: 52px; text-align: right; }
.tone { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.tone .rows { display: flex; flex-direction: column; gap: 6px; }
#hist { width: 100%; height: 44px; display: block; border-radius: 8px; background: #f6f4f0; }
.exp { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }
.xo { display: flex; align-items: center; gap: 8px; } .note { font: 500 11.5px var(--mono); color: var(--mute); white-space: nowrap; }
@media (max-width: 960px) {
  .top, .intro, .app, .how, .foot { padding-left: 16px; padding-right: 16px; }
  h1 .q { font-size: 30px; } h1 em { font-size: 20px; }
  .app { grid-template-columns: 1fr; height: auto; } .left { grid-template-rows: auto auto; } .stagebox { height: min(66vw, 520px); flex: none; }
  .how { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } .fx button { padding: 6px 4px; } .stat { display: none; } }
body.film .lede, body.film .how, body.film .foot { display: none; }
body.film .intro { padding-top: 12px; } body.film h1 .q { font-size: 38px; } body.film h1 em { font-size: 24px; }
body.film.tall .top { padding: 12px 16px 0; } body.film.tall .intro, body.film.tall .app { padding-left: 16px; padding-right: 16px; }
body.film.tall .intro { padding-top: 8px; } body.film.tall h1 .q { font-size: 30px; } body.film.tall h1 em { display: none; }
body.film.tall .app { grid-template-columns: 1fr; height: auto; padding-top: 12px; gap: 10px; }
body.film.tall .left { grid-template-rows: auto auto; gap: 10px; }
body.film.tall .scard { padding: 10px; gap: 8px; border-radius: 18px; } body.film.tall .stagebox { flex: none; height: 290px; }
body.film.tall .inkl span, body.film.tall .cpk, body.film.tall .stat { display: none; } body.film.tall .inkl button { padding: 4px; } body.film.tall .inks { flex-wrap: nowrap; }
body.film.tall .panel { padding: 12px 14px; gap: 10px; border-radius: 18px; }
body.film.tall .tone .rows, body.film.tall #treset, body.film.tall .xo { display: none; } body.film.tall .params { min-height: 70px; gap: 8px; }
body.film.tall .tone { padding-top: 10px; gap: 6px; } body.film.tall .exp { padding-top: 10px; margin-top: 0; }
