@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: #2d5bff; --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; }
.brand b::before { border-radius: 4px; box-shadow: none; background: linear-gradient(135deg, #2d5bff, #00bfa7 50%, #ffd84d); }
.app { display: grid; grid-template-columns: minmax(0, 1fr) 400px; 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: 14px; gap: 12px; overflow: hidden; }
.stagebox { flex: 1; min-height: 0; display: grid; place-items: center; }
.frame { position: relative; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
#ov { position: absolute; inset: 0; overflow: visible; touch-action: none; }
#ov line { stroke: rgba(255,255,255,.9); stroke-width: 2; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
#ov .ring { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.5; stroke-dasharray: 3 5; }
#ov .dot { fill: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
#ov .hit { fill: transparent; stroke: none; }
#ov g { cursor: grab; } #ov .kn circle:not(.hit) { fill: #fff; stroke: var(--ink); stroke-width: 2.5; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
#ov .kn .in { fill: var(--ink) !important; stroke: none !important; filter: none !important; }
#ov text { font: 700 12px var(--mono); fill: #fff; text-anchor: middle; paint-order: stroke; stroke: rgba(0,0,0,.45); stroke-width: 3px; }
#ov .pt circle:not(.hit) { stroke: #fff; stroke-width: 3; filter: drop-shadow(0 2px 5px rgba(0,0,0,.4)); } #ov .pt.sel circle:not(.hit) { stroke-width: 4; }
.barrow { flex: none; }
.bar { position: relative; height: 40px; cursor: copy; touch-action: none; }
.track { position: absolute; left: 13px; right: 13px; top: 8px; height: 24px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.knobs { position: absolute; left: 13px; right: 13px; top: 0; bottom: 0; pointer-events: none; }
.kb { position: absolute; top: 4px; width: 22px; height: 32px; margin-left: -11px; border-radius: 9px; background: var(--c); box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(0,0,0,.18), 0 3px 8px rgba(0,0,0,.25); cursor: ew-resize; pointer-events: auto; }
.kb.sel { box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--ink), 0 3px 8px rgba(0,0,0,.25); z-index: 2; }
.dotrow { flex: none; display: flex; align-items: center; gap: 10px; height: 40px; }
.dots { display: flex; gap: 8px; } .dt { all: unset; cursor: pointer; width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 2.5px #fff, 0 0 0 3.5px rgba(0,0,0,.15); } .dt.on { box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px var(--ink); }
.lb { font: 700 12.5px var(--kr); color: #5d584f; white-space: nowrap; min-width: 58px; }
.presets { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.presets button { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.presets i { display: block; height: 38px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.presets span { font: 700 11.5px var(--kr); color: #5d584f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.presets button.on i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); } .presets button.on span { color: var(--ink); }
.panel { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; overflow: hidden; }
.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; }
.selc { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; background: #f6f4f0; }
.sw { position: relative; width: 36px; height: 36px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); cursor: pointer; flex: none; overflow: hidden; } .sw input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.hx { all: unset; width: 84px; font: 600 14px var(--mono); padding: 7px 9px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-transform: uppercase; }
.posl { display: inline-flex; align-items: center; gap: 3px; font: 600 12px var(--mono); color: var(--mute); } .posl input { all: unset; width: 34px; font: 600 14px var(--mono); color: var(--ink); padding: 7px 6px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-align: right; }
.mini:disabled { opacity: .35; cursor: not-allowed; }
.tools { display: flex; gap: 6px; align-items: center; }
.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); }
.exp { display: flex; flex-direction: column; gap: 9px; flex: 1; min-height: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.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; }
.code { flex: 1; min-height: 60px; margin: 0; padding: 10px 12px; border-radius: 12px; background: #1b1916; color: #e9e4da; font: 500 11px/1.55 var(--mono); overflow: hidden; white-space: pre-wrap; word-break: break-all; }
.xb { display: flex; gap: 6px; } .xb .btn { flex: 1; } .btn.wide { width: 100%; box-sizing: border-box; }
.pngr { margin-top: 2px; }
@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(62vw, 460px); flex: none; }
  .presets { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .code { max-height: 180px; } .how { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .presets { grid-template-columns: repeat(4, minmax(0, 1fr)); } .how { grid-template-columns: 1fr; } .ph .seg.sm button { padding: 5px 7px; } .stagebox { height: 64vw; } }
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; }
.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; }
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: 27px; } body.film.tall h1 em { display: none; }
body.film.tall .app { grid-template-columns: 1fr; grid-template-rows: auto auto; 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: 270px; }
body.film.tall .presets { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px 7px; } body.film.tall .presets i { height: 27px; border-radius: 8px; } body.film.tall .presets span { font-size: 10.5px; } body.film.tall .presets button { gap: 2px; }
body.film.tall .panel { padding: 12px 14px; gap: 9px; border-radius: 18px; }
body.film.tall .hint, body.film.tall #angrow, body.film.tall #sprrow, body.film.tall .posl, body.film.tall .exp .ph, body.film.tall .code, body.film.tall #png, body.film.tall #link { display: none; }
body.film.tall .exp { padding-top: 9px; gap: 0; } body.film.tall .selc { padding: 6px 8px; } body.film.tall .sw { width: 30px; height: 30px; }
.cur.up i { top: auto; bottom: 22px; }
