@font-face { font-family: 'Gothic A1'; src: url(fonts/gothica1-400.woff2) format('woff2'); font-weight: 400 500; font-display: block; }
@font-face { font-family: 'Gothic A1'; src: url(fonts/gothica1-700.woff2) format('woff2'); font-weight: 600 700; font-display: block; }
@font-face { font-family: 'Gothic A1'; src: url(fonts/gothica1-800.woff2) format('woff2'); font-weight: 800 900; 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: #efece6; --ink: #161618; --mute: #8a857c; --line: rgba(0,0,0,.09); --sans: Inter, 'Gothic A1', system-ui, sans-serif; --kr: 'Gothic A1', 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, input { font: inherit; color: inherit; }
.top, .intro, .app, .how, .foot { max-width: 1440px; margin: 0 auto; padding-left: 36px; padding-right: 36px; }
.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 i { font: 500 12px var(--mono); color: var(--mute); font-style: normal; }
.gh { font: 600 14px var(--sans); text-decoration: none; }
.intro { padding-top: 18px; }
h1 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; word-break: keep-all; }
h1 .q { font: 800 42px/1.08 var(--kr); letter-spacing: -.045em; } h1 em { font: italic 400 27px/1.1 Serif, serif; letter-spacing: -.02em; color: #4d4943; }
.lede { margin: 10px 0 0; max-width: 860px; color: #4d4943; word-break: keep-all; }
.app { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 16px; padding-top: 20px; align-items: start; }
.card { background: #fbfaf8; border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 10px 30px -18px rgba(0,0,0,.25); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ph { display: flex; align-items: center; gap: 8px; } .ph b { font: 800 14px var(--kr); } .cnt { font: 600 12px var(--mono); color: var(--mute); }
.row { display: flex; align-items: center; gap: 8px; min-width: 0; } .row.wrap { flex-wrap: wrap; } .sp { flex: 1; }
.stage { position: relative; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; touch-action: none; cursor: grab; display: grid; place-items: center; }
.stage.drag { cursor: grabbing; } .stage canvas { display: block; } .stage.clear { background: repeating-conic-gradient(#f1eee8 0 25%, #fff 0 50%) 0 0 / 18px 18px; }
.hint2 { position: absolute; left: 12px; bottom: 9px; font: 500 11.5px var(--kr); color: var(--mute); pointer-events: none; }
.presets { flex-wrap: wrap; gap: 6px; } .presets button { all: unset; cursor: pointer; padding: 7px 13px; border-radius: 99px; background: #f1eee8; font: 700 12.5px var(--kr); color: #5d584f; } .presets button.on { background: var(--ink); color: #fff; }
.seg { display: inline-flex; background: #f1eee8; border-radius: 11px; padding: 3px; gap: 2px; } .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.sm button { padding: 5px 9px; font-size: 12px; }
.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; } .btn.sm { padding: 9px 13px; font-size: 13px; border-radius: 10px; flex: 1; }
.mini { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 99px; background: #f1eee8; font: 700 12.5px var(--kr); color: #5d584f; white-space: nowrap; }
.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; white-space: nowrap; } .tog i { width: 26px; height: 15px; border-radius: 99px; background: #d6d1c8; position: relative; transition: .2s; } .tog i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: .2s; } .tog.on i { background: var(--ink); } .tog.on i::after { left: 13px; }
.lb2 { font: 700 12.5px var(--kr); color: #5d584f; white-space: nowrap; min-width: 52px; } .note { font: 500 12px var(--kr); color: var(--mute); }
.rng input { flex: 1; min-width: 0; accent-color: var(--ink); } .rng output { min-width: 44px; text-align: right; font: 600 12px var(--mono); color: #5d584f; }
.grp { display: flex; flex-direction: column; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid var(--line); } #params { display: flex; flex-direction: column; gap: 9px; }
.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: 60; white-space: nowrap; } .toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1180px) { .app { grid-template-columns: 220px minmax(0, 1fr); } .side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .side .grp { border: 0; } .side .save { grid-column: 3; } }
@media (max-width: 760px) {
  .top, .intro, .app, .how, .foot { padding-left: 14px; padding-right: 14px; } h1 .q { font-size: 29px; } h1 em { font-size: 19px; }
  .app { display: flex; flex-direction: column; } .stagecard { order: -1; } .side { display: flex; } .list .poses { grid-template-columns: repeat(4, 1fr); gap: 6px; } .poses i { display: none; } .poses b { font-size: 11px; padding: 0 5px 5px; }
  .how { grid-template-columns: 1fr 1fr; gap: 18px; } .card { padding: 11px; border-radius: 18px; } .bar .psz, .bar .ang, .hint2 { display: none; }
}
@media (max-width: 420px) { .how { grid-template-columns: 1fr; } .presets button { padding: 6px 10px; } }
/* film */
.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; } .cur.up i { top: -34px; }
body.film { overflow: hidden; } body.film .how, body.film .foot { display: none; } body.film:not(.tall) .intro { padding-top: 10px; } body.film:not(.tall) .lede { display: none; }
body.tall .top, body.tall .intro, body.tall .app { padding-left: 12px; padding-right: 12px; } body.tall h1 .q { font-size: 27px; } body.tall h1 em, body.tall .lede { display: none; } body.tall .tx { display: none !important; }
body.tall .app { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; } body.tall .stagecard { order: -1; } body.tall .card { padding: 10px; gap: 8px; }
/* p44 */
.bar .pname { font: 800 17px var(--kr); letter-spacing: -.02em; }
/* p45 */
.app { grid-template-columns: 300px minmax(0, 1fr) 320px; }
.bar .pname { font: 800 17px var(--kr); letter-spacing: -.02em; } .bar .pen { font: italic 400 16px Serif, serif; color: var(--mute); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .tiles h4 { grid-column: 1 / -1; margin: 6px 0 0; font: 800 11.5px var(--kr); color: var(--mute); letter-spacing: .02em; } .tiles h4:first-child { margin-top: 0; }
.tile { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 3px; border-radius: 10px; padding: 3px 3px 5px; } .tile canvas { width: 100%; aspect-ratio: 16 / 9; border-radius: 7px; display: block; } .tile b { font: 700 11.5px var(--kr); color: #5d584f; padding-left: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.on { background: var(--ink); } .tile.on b { color: #fff; } .tile:not(.on):hover { background: #f1eee8; }
.stage { cursor: crosshair; } .stage canvas { border-radius: 0; }
.mark { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(0,0,0,.45); pointer-events: none; } .mark::after { content: ''; position: absolute; left: 9px; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.stage .hint2 { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.transport { gap: 10px; } .transport input { flex: 1; min-width: 0; accent-color: var(--ink); } .transport output { font: 600 12px var(--mono); color: #5d584f; min-width: 62px; text-align: right; }
.play { all: unset; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: 0 0 auto; } .play i { width: 0; height: 0; border-left: 12px solid #fff; border-top: 7.5px solid transparent; border-bottom: 7.5px solid transparent; margin-left: 3px; } .play.on i { width: 11px; height: 13px; border: 0; margin: 0; background: linear-gradient(90deg, #fff 0 35%, transparent 35% 65%, #fff 65%); }
.sw { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; min-width: 0; } .sw button { all: unset; cursor: pointer; width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); } .sw button.on { box-shadow: 0 0 0 2px #fbfaf8, 0 0 0 3.5px var(--ink); }
input[type=color] { width: 30px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; flex: 0 0 auto; } .side .row > input[type=range] { flex: 1; min-width: 0; accent-color: var(--ink); } .side .row > output { min-width: 44px; text-align: right; font: 600 12px var(--mono); color: #5d584f; }
.txt { flex: 1; min-width: 0; border: 0; border-radius: 9px; background: #f1eee8; padding: 7px 10px; font: 600 13px var(--kr); }
.side .btn { width: 100%; box-sizing: border-box; } .side .btn.sm { width: auto; }
.side .seg.sm button { padding: 5px 8px; }
@media (max-width: 1180px) { .app { grid-template-columns: 260px minmax(0, 1fr); } .side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (max-width: 760px) { .app { display: flex; flex-direction: column; align-items: stretch; } .side { display: flex; } .tiles { grid-template-columns: repeat(4, 1fr); } .tile b { font-size: 10.5px; } }
body.film .app { padding-top: 12px; }
body.film:not(.tall) .tiles { grid-template-columns: repeat(4, 1fr); gap: 2px 4px; } body.film:not(.tall) .tile { padding: 2px 2px 3px; gap: 1px; } body.film:not(.tall) .list .ph { margin-bottom: 4px; } body.film:not(.tall) .tile b { font-size: 10.5px; } body.film:not(.tall) .tiles h4 { margin: 1px 0 0; font-size: 10px; line-height: 1.2; }
body.tall .app { gap: 8px; } body.tall .tiles { grid-template-columns: repeat(6, 1fr); gap: 3px; } body.tall .tiles h4 { display: none; } body.tall .tile b { font-size: 9.5px; } body.tall .list .ph { display: none; }
body.tall .side .grp:nth-child(2) { display: none; } body.tall .side .grp { border: 0; padding-bottom: 0; } body.tall #opts .rng, body.tall #opts [data-if], body.tall #edgeRow, body.tall .save .ph, body.tall .save .row { display: none !important; } body.tall .side { padding: 10px 12px; } body.tall #opts { gap: 6px; } body.tall .side { display: flex; flex-direction: column; gap: 6px; }
