@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 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; }
:root { --lime: #c8f05a; --coral: #ff5a4e; --paper: #f6f5f1; }
:root { --bg: #efe9dd; --paper: #faf7f0; --lime: #c8f05a; --coral: #ff5a4e; }
.brand b { display: inline-flex; align-items: center; gap: 9px; }
.brand b::before { content: ''; width: 22px; height: 22px; border-radius: 6px; background: #2b2622 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7c3-2 7-1 7 2s-6 5-7 8h9' fill='none' stroke='%23f6f0e4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%; }
.sp { flex: 1; }
.app { display: grid; grid-template-columns: 370px minmax(0, 1fr) 300px; gap: 16px; padding-top: 22px; height: 720px; }
body.film .app { height: 618px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 16px; overflow: hidden; }
.ph .no { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 800 12px var(--sans); flex: none; } .ph b { font-size: 15px; }
.cnt { font: 600 12px var(--mono); color: var(--mute); }
.photo { position: relative; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); aspect-ratio: 5 / 4; overflow: hidden; flex: none; }
.photo canvas, .photo svg { position: absolute; inset: 0; width: 100%; height: 100%; } .photo canvas { opacity: 0; } .photo.on canvas { opacity: 1; }
.photo .empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; } .photo .empty p { margin: 0; font: 500 13.5px/1.7 var(--kr); color: #6b665d; } .photo .empty b { font: 800 17px var(--kr); color: var(--ink); letter-spacing: .12em; }
.photo .empty { background: repeating-linear-gradient(0deg, transparent 0 27px, rgba(0,0,0,.05) 27px 28px); }
#boxes .bx { cursor: pointer; } #boxes rect { fill: rgba(200,240,90,.18); stroke: #5aa63c; } #boxes text { fill: #fff; paint-order: stroke; stroke: #3f8a2a; stroke-width: 5px; font-weight: 800; font-family: UI, sans-serif; }
#boxes .off rect { fill: rgba(255,90,78,.12); stroke: var(--coral); stroke-dasharray: 6 6; } #boxes .off text { display: none; }
.xb { display: flex; gap: 6px; flex: none; } .xb .btn, .xb label.btn { flex: 1; }
.hint { margin: -4px 0 0; font: 500 12px/1.5 var(--kr); color: var(--mute); white-space: normal; flex: none; }
.slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; overflow: auto; min-height: 0; padding: 2px; }
.slot { all: unset; cursor: pointer; position: relative; aspect-ratio: 1; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; }
.slot i { position: absolute; left: 5px; top: 3px; font: 700 10.5px var(--kr); font-style: normal; color: #a49e93; } .slot:hover { box-shadow: inset 0 0 0 1.5px #b9b4aa; }
.slot .g { position: absolute; inset: 15% 12% 9%; } .slot svg { display: block; width: 100%; height: 100%; fill: var(--ink); overflow: visible; }
.slot:not(.has)::after { content: '+'; font: 400 18px var(--sans); color: #c9c3b7; }
.slot.has { background: #fff; } .slot.pop .g { animation: pop .45s cubic-bezier(.3,1.6,.5,1) both; } @keyframes pop { from { transform: scale(.4); opacity: 0; } }
.mon { display: flex; align-items: center; gap: 6px; font: 700 14px var(--mono); } .mon .mini { padding: 5px 10px; }
.row.wrap { flex-wrap: wrap; gap: 8px; } .seg.sm button { padding: 5px 10px; font-size: 12px; }
.themes { display: flex; gap: 5px; } .themes button { all: unset; cursor: pointer; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.themes button.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.cal { flex: 1; min-height: 0; position: relative; border-radius: 14px; background: #e6e0d3; box-shadow: inset 0 0 0 1px var(--line); }
.cal canvas { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; border-radius: 6px; box-shadow: 0 10px 30px -12px rgba(40,30,10,.45); }
.btn.wide { width: 100%; box-sizing: border-box; flex: none; }
.fld { display: flex; flex-direction: column; gap: 5px; } .fld span { font: 700 12px var(--kr); color: #5d584f; }
.fld input, .fld textarea { font: 600 14px var(--kr); padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); resize: none; outline: none; } .fld input:focus, .fld textarea:focus { border-color: var(--ink); }
.try { flex: 1; min-height: 0; } .try textarea { flex: 1; font-size: 40px; line-height: 1.25; padding: 12px 14px; background: #fff; }
.small { margin: -4px 0 0; font: 500 12px/1.5 var(--kr); color: var(--mute); }
.pad { position: fixed; inset: 0; z-index: 60; background: rgba(30,25,20,.45); display: grid; place-items: center; }
.padc { width: min(420px, 92vw); background: #fff; border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
#pcv { width: 100%; aspect-ratio: 1; border-radius: 14px; touch-action: none; box-shadow: inset 0 0 0 1px var(--line); background: #fff; cursor: crosshair; }
@media (max-width: 1180px) { .app { grid-template-columns: 370px minmax(0, 1fr); height: auto; } .col1, .col2 { height: 760px; } .col3 { grid-column: 1 / -1; } .try textarea { min-height: 120px; } }
@media (max-width: 760px) {
  .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; } .col1, .col2 { height: auto; } .cal { height: 480px; flex: none; } .how { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } .slots { grid-template-columns: repeat(6, minmax(0, 1fr)); } .row.wrap .sp { display: none; } }
body.film .lede, body.film .how, body.film .foot { display: none; }
body.film .intro { padding-top: 10px; } body.film h1 .q { font-size: 36px; } body.film h1 em { font-size: 23px; }
/* 9:16 film */
body.tall .top, body.tall .intro, body.tall .app { padding-left: 14px; padding-right: 14px; }
body.tall h1 .q { font-size: 25px; } body.tall h1 em { display: none; } body.tall .intro { padding-top: 4px; }
body.tall .app { grid-template-columns: 1fr; height: auto; gap: 10px; padding-top: 10px; }
body.tall .card { padding: 11px; gap: 8px; }
body.tall .col1 { display: grid; grid-template-columns: 0.95fr 1.05fr; grid-template-areas: "ph ph" "photo slots" "xb slots"; column-gap: 10px; row-gap: 8px; }
body.tall .col1 > .ph { grid-area: ph; } body.tall .photo { grid-area: photo; } body.tall .col1 > .xb { grid-area: xb; } body.tall .slots { grid-area: slots; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; align-content: start; overflow: visible; } body.tall .col1 > .hint { display: none; }
body.tall .xb .btn { padding: 7px 6px; font-size: 12px; }
body.tall .col2 { height: 408px; } body.tall #ws { display: none; } body.tall .row.wrap { gap: 6px; } body.tall .row.wrap .sp { display: none; } body.tall .themes button { width: 22px; height: 22px; }
body.tall .col2 > .btn { display: none; }
body.tall .col3 { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "try btn"; gap: 8px; } body.tall .col3 > .ph { display: none; } body.tall .try { grid-area: try; } body.tall #savefont { grid-area: btn; width: auto; align-self: end; padding: 9px 12px; }
body.tall .col3 .fld:not(.try), body.tall .col3 .hint, body.tall .col3 .small, body.tall .try > span { display: none; } body.tall .try textarea { font-size: 23px; padding: 6px 10px; height: 54px; flex: none; }
body.tall .cal { height: auto; flex: 1; } body.tall .col1, body.tall .col2 { } body.tall .row.wrap { flex-wrap: wrap; }
body.tall .col3 { height: 84px; } body.tall .try { min-height: 0; height: 100%; } body.tall .try textarea { height: 100%; min-height: 0; }
