@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; }
.props { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.props button { all: unset; cursor: pointer; display: flex; flex-direction: column; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .15s; } .props button:hover { box-shadow: 0 0 0 1.5px #b9b3a8; } .props button.on { box-shadow: 0 0 0 2.5px var(--ink); }
.props canvas { width: 100%; aspect-ratio: 4 / 3; display: block; } .props b { font: 800 12.5px var(--kr); padding: 0 8px; } .props i { font: 500 10.5px var(--sans); color: var(--mute); padding: 0 8px 7px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .pname { font: 800 17px var(--kr); letter-spacing: -.02em; } .pen { font: italic 400 16px Serif, serif; color: #6b665d; } .psz { font: 500 12px var(--kr); color: var(--mute); } .ang { font: 600 12px var(--mono); color: #6b665d; }
.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 .props { grid-template-columns: repeat(4, 1fr); gap: 6px; } .props i { display: none; } .props 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; }
body.tall .list .props { grid-template-columns: repeat(6, 1fr); gap: 5px; } body.tall .props i { display: none; } body.tall .props b { font-size: 10.5px; padding: 0 4px 4px; white-space: nowrap; overflow: hidden; } body.tall .list .ph { display: none; }
body.tall .side { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; } body.tall .side .grp { border: 0; padding: 0; gap: 7px; } body.tall .side .grp:nth-child(2) { display: none; } body.tall .side .save { grid-column: 1 / -1; } body.tall .bar .psz { display: none; }
body.tall .side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } body.tall .side .grp:nth-child(3) .row:first-of-type .lb2 { display: none; } body.tall .side .seg.sm button { padding: 5px 8px; } body.tall .side .lb2 { min-width: 34px; }
.props button:focus-visible, .presets button:focus-visible, .seg button:focus-visible, .btn:focus-visible, .mini:focus-visible, .tog:focus-visible { outline: 2.5px solid #2f6fe4; outline-offset: 2px; }
