/* One job at a time: a single side panel, a big picture, and as few words as will do. */
@font-face { font-family: "Studio"; src: local("Manrope Medium"), local("Manrope-Medium"), url(./fonts/Manrope-Medium.ttf); font-weight: 400 500; }
@font-face { font-family: "Studio"; src: local("Manrope SemiBold"), local("Manrope-SemiBold"), url(./fonts/Manrope-SemiBold.ttf); font-weight: 600; }
@font-face { font-family: "Studio"; src: local("Manrope ExtraBold"), local("Manrope-ExtraBold"), url(./fonts/Manrope-ExtraBold.ttf); font-weight: 700 800; }
@font-face { font-family: "Studio Brush"; src: local("Petaluma Script"), local("PetalumaScript"), url(./fonts/PetalumaScript.otf); }
:root { color-scheme: dark; --bg: #141414; --panel: #1b1b1b; --raise: #2a2a2a; --raise2: #383838; --pop: #2c2c2c; --pop2: #3b3b3b; --dlg: #1f1f1f; --line: #333; --hair: #ffffff14; --scroll: #3a3a3a; --ink: #fff; --soft: #d8d4cf; --mute: #98938d; --hint: #9f9993; --accent: #ffd60a; --on-accent: #191919; --say: #ffd60a; --script: #ffd60a; --ring: #ffd60a; --inv: #fff; --on-inv: #191919; --bad: #ff8d85; --warn: #ffc24d; --warn-bg: #ffc24d1f; --stage: #101010; --cream: #fff5ed; --card: #fff5ed; --on-card: #191919; --card-mute: #6b635b; --card-bar: #ead9c9; --edge: #ffffff2e; --drop: #000c; --tl-tick: #8b8681; --tl-block: #333130; --tl-now: #5d564d; --tl-gap: #1b1b1b90; --tl-wave: #ffffff1c; --tl-text: #c9c4be; --tl-on: #ffffff; --tl-cut: #1b1b1bd0; --tl-bad: #ff8d85; --tl-head: #ffffff; --tl-zoom: #7a5cff; --tl-zoom2: #c9bbff; --tl-key: #00000000; --ui: "Studio", -apple-system, "Segoe UI", sans-serif; }
:root[data-theme=light] { color-scheme: light; --bg: #f8f0e7; --panel: #fffaf5; --raise: #eee2d5; --raise2: #e2d3c3; --pop: #fff; --pop2: #f1e7dc; --dlg: #fffaf5; --line: #dccdbd; --hair: #1919191f; --scroll: #cfc0b1; --ink: #191919; --soft: #3a3530; --mute: #6b6259; --hint: #6b6259; --say: #765c00; --script: #191919; --ring: #191919; --inv: #191919; --on-inv: #fff; --bad: #b3261e; --warn: #7d5200; --warn-bg: #ffc24d4d; --stage: #eadfd2; --card: #191919; --on-card: #fff5ed; --card-mute: #b9b0a7; --card-bar: #3d3935; --edge: #0000002b; --drop: #4a37222e; --tl-tick: #7b7168; --tl-block: #eadccd; --tl-now: #ffe27a; --tl-gap: #fffaf5c0; --tl-wave: #1919191f; --tl-text: #4a433c; --tl-on: #191919; --tl-cut: #fffaf5d8; --tl-bad: #b3261e; --tl-head: #191919; --tl-zoom: #7a5cff; --tl-zoom2: #4a2fd0; --tl-key: #19191938; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 500 15px/1.45 var(--ui); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; font-variant-numeric: inherit; }
button { background: var(--raise); border: 0; border-radius: 99px; padding: 9px 17px; cursor: pointer; white-space: nowrap; font-weight: 600; }
button:hover { background: var(--raise2); } button:disabled { opacity: .28; cursor: default; background: none; }
button.ghost { background: none; color: var(--mute); } button.ghost:hover { color: var(--ink); background: var(--raise); }
button.primary { background: var(--accent); color: var(--on-accent); font-weight: 800; padding-inline: 22px; } button.primary:hover { background: #ffe14d; } button.big { min-height: 54px; font-size: 17px; }
button.danger { color: var(--bad); }
.icon { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; background: none; flex: none; } .icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2.5px solid var(--ring); outline-offset: 2px; }
input:not([type=range]):not([type=color]):not([type=radio]):not([type=checkbox]), select, textarea { background: var(--raise); border: 0; border-radius: 12px; padding: 10px 14px; min-width: 0; }
select { border-radius: 99px; cursor: pointer; } select { -webkit-appearance: none; appearance: none; padding-right: 36px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398938d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 13px center !important; background-size: 14px !important; text-overflow: ellipsis; } ::placeholder { color: var(--hint); }
input[type=range] { accent-color: var(--ink); width: 100%; margin: 0; } input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
input[type=color] { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; } input[type=color]::-webkit-color-swatch-wrapper { padding: 0; } input[type=color]::-webkit-color-swatch { border: 2px solid var(--edge); border-radius: 50%; }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; } p { margin: 0; } hr { border: 0; border-top: 1px solid var(--hair); margin: 5px 10px; width: auto; }
summary { cursor: pointer; list-style: none; } summary::-webkit-details-marker { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .grow { flex: 1; } .muted, .tc { color: var(--mute); } .tc { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; } .wrap { flex-wrap: wrap; } .end { justify-content: flex-end; } .warn { color: var(--warn); } .lbl { color: var(--mute); } .f { display: flex; gap: 10px; align-items: center; color: var(--mute); } .f select { color: var(--ink); }
.bar { display: block; height: 8px; background: #0002; border-radius: 99px; overflow: hidden; } .bar i { display: block; height: 100%; width: 0; background: currentColor; border-radius: 99px; transition: width .3s; }
.brush { font-family: "Studio Brush", cursive; font-weight: 400; color: var(--script); letter-spacing: -.01em; display: inline-block; rotate: -3deg; }
.menu { position: absolute; z-index: 15; background: var(--pop); border-radius: 18px; padding: 8px; display: grid; min-width: 220px; box-shadow: 0 18px 50px var(--drop); } .menu button { background: none; text-align: left; border-radius: 11px; font-weight: 500; padding: 9px 12px; } .menu button:hover { background: var(--pop2); } .menu .f { padding: 7px 12px; } .menu select { background: var(--pop2); padding: 6px 10px; }

/* ---------- start ---------- */
#home { max-width: 1180px; min-height: 100%; margin: 0 auto; padding: 20px max(22px, env(safe-area-inset-right)) 60px max(22px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 56px; }
.mast { display: flex; align-items: center; gap: 14px; } .logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 22px; letter-spacing: -.05em; color: var(--ink); text-decoration: none; } .logo i { width: 24px; height: 17px; border-radius: 4px; background: linear-gradient(var(--accent), var(--accent)) 0 100%/100% 8px no-repeat, linear-gradient(currentColor, currentColor) 0 0/62% 6px no-repeat; } .mast nav { margin-left: auto; display: flex; gap: 22px; } .mast nav a { color: var(--soft); text-decoration: none; font-weight: 600; } .mast nav a:hover { color: var(--say); } .mast > .icon { margin-left: auto; color: var(--mute); } .mast nav + .icon { margin-left: 0; } .mast .icon svg { width: 21px; height: 21px; }
.start { display: grid; gap: 22px; } .start h1 { font-size: clamp(42px, 6.6vw, 92px); }
#drop { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(18px, 3vw, 40px); min-height: clamp(190px, 27vh, 300px); padding: clamp(22px, 3.4vw, 48px); background: var(--card); color: var(--on-card); border-radius: 32px; cursor: pointer; overflow: hidden; transition: transform .2s, box-shadow .2s; }
#drop:hover { transform: translateY(-3px); } #drop.over { box-shadow: inset 0 0 0 6px var(--accent); }
.orb { width: clamp(84px, 11vw, 148px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); display: grid; place-items: center; transition: transform .25s cubic-bezier(.2, 1.6, .4, 1); } #drop:hover .orb, #drop.over .orb { transform: scale(1.06) translateY(-4px); } .orb svg { width: 42%; fill: none; stroke: #191919; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dropText { display: grid; gap: 4px; min-width: 0; } #drop strong { font-size: clamp(30px, 4.4vw, 60px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; } #dropSub { color: var(--card-mute); font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#drop.busy { cursor: default; transform: none; } #drop.busy .orb { display: none; } #dropVid { height: clamp(140px, 20vh, 220px); aspect-ratio: 4/5; object-fit: cover; border-radius: 18px; background: #191919; } #dropPct { font-size: clamp(48px, 7vw, 104px); font-weight: 800; letter-spacing: -.06em; line-height: 1; } #dropBar { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; border-radius: 0; color: var(--on-card); background: var(--card-bar); }
.ask { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 19px; font-weight: 600; } .ask select { font-size: 18px; font-weight: 700; padding: 11px 18px; max-width: 100%; } .safe { margin-left: auto; color: var(--mute); font-size: 15px; font-weight: 500; } #langNote { font-size: 15px; font-weight: 500; } #langNote:empty { display: none; } .under { display: flex; gap: 20px; align-items: flex-start; } #vocabBox summary::before { content: "+ "; } #vocabBox summary { color: var(--mute); width: fit-content; } #vocabBox summary:hover { color: var(--ink); } #vocab { width: min(420px, 76vw); margin-top: 10px; resize: vertical; }
#recent h2 { font-size: 30px; margin-bottom: 20px; } #projects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 18px; } #projects li { position: relative; }
#projects .open { display: grid; gap: 9px; width: 100%; text-align: left; background: none; padding: 0; border-radius: 18px; font-weight: 700; } #projects .open video, #projects .open .none { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 18px; background: var(--raise); display: block; transition: transform .2s; } #projects .open:hover video { transform: translateY(-4px); } #projects .open span { display: flex; justify-content: space-between; gap: 10px; padding: 0 3px; } #projects b { overflow: hidden; text-overflow: ellipsis; } #projects small { color: var(--mute); font-size: 14px; font-weight: 500; } #projects .del { position: absolute; right: 9px; top: 9px; background: #000a; color: #fff; padding: 5px 12px; font-size: 13px; opacity: 0; } #projects li:hover .del, #projects .del:focus-visible, #projects .del.danger { opacity: 1; }
.foot { align-items: center; margin-top: auto; color: var(--mute); display: flex; gap: 18px; font-size: 14px; } .foot a { color: inherit; }

/* ---------- editor ---------- */
#editor { height: 100%; display: grid; grid-template: 66px minmax(0, 1fr) / minmax(330px, 410px) minmax(0, 1fr); grid-template-areas: "top top" "side mid"; }
#top { grid-area: top; display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 0 16px 0 12px; }
#pname { background: none; font-weight: 700; font-size: 16px; width: min(260px, 100%); padding-inline: 10px; } #pname:hover, #pname:focus { background: var(--panel); }
.steps { position: relative; isolation: isolate; display: flex; background: var(--panel); border-radius: 99px; padding: 4px; } .steps button { background: none; color: var(--mute); padding: 9px 24px; font-weight: 700; } .steps button:hover { color: var(--ink); } .steps::before { content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 99px; background: var(--inv); transition: transform .32s var(--spring), width .32s var(--spring); } .steps button { transition: color .2s; } .steps [aria-selected=true], .steps [aria-selected=true]:hover { color: var(--on-inv); }
.acts { display: flex; align-items: center; justify-content: flex-end; gap: 4px; } #saved { color: var(--mute); font-size: 13px; margin-right: 6px; } #exportBtn { margin-left: 8px; }
#side { grid-area: side; min-height: 0; display: flex; flex-direction: column; padding: 4px 0 0 12px; } #left { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.tools { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 6px 0 14px; } .tools .icon { margin-left: auto; color: var(--soft); } .tools .icon svg { stroke-width: 3.4; } .tools .menu { right: 6px; top: 46px; }
#review button { background: var(--warn-bg); color: var(--warn); padding: 7px 14px; } #review { color: var(--mute); }
#cues { list-style: none; margin: 0; padding: 4px 6px 40vh 0; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--scroll) transparent; }
#cues li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding: 7px 12px 7px 14px; border-radius: 16px; color: var(--mute); transition: color .15s; } #cues li:hover { color: var(--soft); } #cues li.now { background: var(--panel); color: var(--ink); } #cues li .tc { opacity: 0; cursor: pointer; } #cues li.now .tc, #cues li:hover .tc { opacity: 1; }
#cues .ws { display: flex; flex-wrap: wrap; } #cues .w { padding: 2px 4px; border-radius: 8px; cursor: pointer; font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; } #cues .w:hover { background: var(--raise); } #cues .w.sel { background: var(--inv); color: var(--on-inv); } #cues .w.low { text-decoration: underline wavy var(--warn) 1.5px; text-underline-offset: 5px; } #cues .w.hl { font-weight: 800; background: linear-gradient(var(--c), var(--c)) 4px 100% / calc(100% - 8px) 3px no-repeat; } #cues .w.hl.sel { background: var(--inv); } :root[data-theme=light] #cues .w.hl:not(.sel) { background-image: linear-gradient(color-mix(in srgb, var(--c), #191919 26%), color-mix(in srgb, var(--c), #191919 26%)); }
#inspect { position: fixed; z-index: 12; width: 296px; background: var(--pop); border-radius: 20px; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; box-shadow: 0 20px 60px var(--drop); } #wText { font-size: 21px; font-weight: 700; background: var(--pop2); width: 100%; } #wAlt { color: var(--mute); } #wAlt button { background: var(--accent); color: #191919; padding: 6px 14px; } #inspect summary { color: var(--mute); } #inspect summary:hover { color: var(--ink); } #inspect details[open] { display: grid; gap: 10px; } #wEmoji { width: 78px; background: var(--pop2); } #wTime { margin-left: auto; } .two { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 4px; } .two button { background: var(--pop2); padding: 9px 10px; font-size: 14px; border-radius: 12px; }
.swatches { display: flex; gap: 9px; padding-right: 3px; margin-left: auto; } .swatches button { width: 30px; height: 30px; padding: 0; border-radius: 50%; } .swatches button:not(.none) { background: var(--c); } .swatches button[aria-pressed=true] { outline: 2.5px solid var(--ink); outline-offset: 2px; } .swatches button:not(.none) { box-shadow: inset 0 0 0 1px #0000001f; } .swatches .none { background: var(--pop2); color: var(--mute); }

#mid { grid-area: mid; min-width: 0; min-height: 0; display: grid; grid-template: minmax(0, 1fr) 72px 78px / minmax(0, 1fr); padding: 4px 16px 14px 14px; }
#stageWrap { display: grid; place-items: center; min-height: 0; overflow: hidden; background: var(--stage); border-radius: 22px; } #stage { position: relative; background: #000; touch-action: none; border-radius: 14px; overflow: hidden; }
#stage video, #stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; } #stage canvas { cursor: grab; } #stage.drag canvas { cursor: grabbing; }
#stage.green { background: #0f0; } #stage.grid { background: repeating-conic-gradient(#4a4a4a 0 25%, #383838 0 50%) 0 0 / 24px 24px; } #stage.green video, #stage.grid video { opacity: 0; }
#stage #zoomc { pointer-events: none; } #stage.green #zoomc, #stage.grid #zoomc { opacity: 0; } #stage.aim canvas { cursor: crosshair; } #areaBox { position: absolute; pointer-events: none; border: 1.5px dashed #ffffffb0; border-radius: 6px; } #areaBox i { position: absolute; width: 24px; height: 24px; margin: -12px; border: 3px solid var(--accent); border-radius: 50%; }
#safe { position: absolute; inset: 0; pointer-events: none; } #safe i { position: absolute; background: #ff5a4f38; } #safe .t { inset: 0 0 auto; height: 12%; } #safe .b { inset: auto 0 0; height: 20%; } #safe .r { right: 0; width: 13%; top: 45%; bottom: 20%; }
#transport { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; } #clock { color: var(--mute); font-size: 15px; font-weight: 600; } #clock b { color: var(--ink); font-weight: 700; } #play { width: 52px; height: 52px; padding: 0; border-radius: 50%; background: var(--inv); color: var(--on-inv); display: grid; place-items: center; } #play:hover { background: var(--accent); color: var(--on-accent); } #play svg { width: 26px; height: 26px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; } #play .p2, #play.on .p1 { display: none; } #play.on .p2 { display: block; }
#view { justify-self: end; position: relative; } #view summary { color: var(--mute); font-weight: 600; padding: 9px 14px; border-radius: 99px; } #view summary:hover, #view[open] summary { color: var(--ink); background: var(--panel); } #view .menu { right: 0; bottom: 48px; min-width: 290px; } #view .menu .f button { color: var(--ink); background: var(--pop2); width: 36px; text-align: center; border-radius: 99px; } #safeBtn[aria-pressed=true] { color: var(--say); }
#timeline { width: 100%; height: 100%; display: block; cursor: pointer; border-radius: 16px; background: var(--panel); }

.switch { display: flex; gap: 4px; padding: 0 6px 12px 14px; } .switch button { background: none; color: var(--mute); padding: 7px 4px; margin-right: 16px; border-radius: 6px; font-weight: 700; font-size: 17px; } .switch [aria-pressed=true] { color: var(--ink); box-shadow: inset 0 -3px var(--ring); border-radius: 0; }
#looks, #adjust, #fx { overflow-y: auto; flex: 1; padding: 4px 10px 40px 14px; scrollbar-width: thin; scrollbar-color: var(--scroll) transparent; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } #looks h3 { margin: 0 0 12px; font-size: 16px; color: var(--mute); letter-spacing: -.02em; } #looks h3:not(:first-child) { margin-top: 26px; }
.look { display: grid; gap: 7px; background: none; text-align: left; position: relative; cursor: pointer; border-radius: 16px; } .look canvas { width: 100%; aspect-ratio: 4/3; border-radius: 16px; background: linear-gradient(160deg, #3d3833, #262320); display: block; box-shadow: inset 0 0 0 0 var(--accent); } .look[aria-pressed=true] canvas { outline: 3px solid var(--ring); outline-offset: 2px; } .look span { color: var(--mute); font-weight: 600; padding-left: 3px; } .look:hover span, .look[aria-pressed=true] span { color: var(--ink); } .look .rm { position: absolute; right: 8px; top: 8px; padding: 2px 9px; background: #000a; color: #fff; } .savelook { display: flex; gap: 8px; margin-top: 22px; } .savelook input { flex: 1; }
#adjust details { border-top: 1px solid var(--hair); } #adjust details:first-child { border: 0; } #adjust summary, .acc > summary { font-weight: 700; font-size: 17px; letter-spacing: -.02em; padding: 15px 0; display: flex; align-items: center; gap: 10px; } #adjust summary::after { content: "+"; margin-left: auto; color: var(--mute); font-size: 21px; font-weight: 500; } #adjust [open] > summary::after { content: "–"; } #adjust details.basic > summary { display: none; } #adjust details[open] { padding-bottom: 14px; }
.ctl { display: grid; grid-template-columns: 104px minmax(0, 1fr) 46px; gap: 12px; align-items: center; min-height: 46px; } .ctl > label { color: var(--soft); font-size: 14px; } .ctl input[type=range] + input[type=color] { justify-self: end; width: 32px; height: 32px; } .ctl output { font-size: 14px; color: var(--mute); text-align: right; } .ctl select, .ctl .fontbtn { grid-column: 2 / 4; width: 100%; text-align: left; overflow: hidden; text-overflow: ellipsis; border-radius: 12px; } .ctl .cols { grid-column: 2 / 4; display: flex; gap: 10px; } .ctl input[type=checkbox] { justify-self: start; width: 20px; height: 20px; }
.acc { background: var(--panel); border-radius: 20px; padding: 0 18px; margin-bottom: 10px; } .acc > summary { padding: 18px 0; } .acc > summary em { margin-left: auto; font-style: normal; font-weight: 500; font-size: 14px; color: var(--mute); letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52%; } .acc > summary em.on { color: var(--say); font-weight: 600; } .acc > div { padding-bottom: 18px; } .acc h3 { display: none; } .acc p { color: var(--mute); font-size: 14px; margin: 0 0 12px; } .acc .row { margin: 10px 0; } .acc button.primary { background: var(--inv); color: var(--on-inv); } .acc button.primary:hover { background: var(--accent); color: var(--on-accent); } .acc ul { list-style: none; margin: 10px 0 0; padding: 0; } .acc li { display: flex; align-items: center; gap: 6px; border-radius: 12px; } .acc li.sel { background: var(--raise); } .acc li > button:first-child { flex: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; background: none; text-align: left; padding: 9px 10px; min-width: 0; border-radius: 12px; white-space: normal; font-weight: 500; } .acc li > button:first-child:hover { background: var(--raise); } .acc li > button:last-child:not(:first-child) { background: none; color: var(--mute); padding: 6px 12px; } .acc li > button:last-child:not(:first-child):hover { color: var(--ink); background: var(--raise); } .acc .ed { background: var(--raise); border-radius: 14px; padding: 8px 14px; margin: 4px 0 8px; } .acc details summary { color: var(--mute); padding: 12px 0 8px; } .acc details summary:hover { color: var(--ink); } .acc select { background: var(--raise); } #hookText { width: 100%; font-size: 17px; }
#fontPop { position: fixed; z-index: 20; width: 330px; background: var(--pop); border-radius: 20px; padding: 12px; box-shadow: 0 20px 60px var(--drop); } #fontQ { width: 100%; background: var(--pop2) !important; } #fontMore { margin-top: 10px; } #fontMore button { background: var(--pop2); font-size: 14px; } #fontList { list-style: none; margin: 10px 0 0; padding: 0; height: 340px; overflow-x: hidden; overflow-y: auto; } #fontList button { display: grid; width: 100%; background: none; text-align: left; padding: 7px 10px; border-radius: 12px; } #fontList button:hover { background: var(--pop2); } #fontList .s { font-size: 22px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; } #fontList small { color: var(--mute); }
dialog { width: min(560px, 94vw); background: var(--dlg); color: var(--ink); border: 0; border-radius: 28px; padding: 28px; } dialog::backdrop { background: #000b; } dialog h2 { font-size: 34px; } dialog form { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; } #exForm, #exLock, #exRun, #exDone { display: grid; gap: 18px; } #exLock p { font-size: 17px; } #exLockMsg:empty { display: none; } .buylink { display: grid; place-items: center; min-height: 54px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-weight: 800; text-decoration: none; } dialog #exUnlock { display: flex; gap: 8px; margin: 0; } #exUnlock input { flex: 1; } dialog p { overflow-wrap: anywhere; } dialog .bar { color: var(--say); background: var(--raise2); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; } .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .choices label:last-child:nth-of-type(odd) { grid-column: 1 / -1; } .choices label { display: block; padding: 18px; border-radius: 18px; background: var(--raise); cursor: pointer; } .choices label:hover { background: var(--raise2); } .choices label:has(:checked) { background: var(--card); color: var(--on-card); } .choices input { position: absolute; opacity: 0; } .choices label:has(:focus-visible) { outline: 2.5px solid var(--ring); outline-offset: 2px; } .choices b { font-size: 18px; letter-spacing: -.03em; font-weight: 800; display: block; line-height: 1.15; } .choices small { display: block; color: var(--mute); font-size: 14px; margin-top: 5px; line-height: 1.35; } .choices label:has(:checked) small { color: var(--card-mute); } .others summary { color: var(--mute); } .others summary::before { content: "+ "; } .others[open] summary { margin-bottom: 12px; }
#toast { position: fixed; left: 50%; bottom: 112px; transform: translateX(-50%); background: var(--inv); color: var(--on-inv); padding: 13px 22px; border-radius: 99px; z-index: 40; max-width: 84vw; font-weight: 600; box-shadow: 0 12px 40px var(--drop); }
@media (max-width: 900px) { #editor { grid-template-columns: 290px minmax(0, 1fr); } .steps button { padding: 9px 14px; } #saved { display: none; } #pname { width: 100%; } #cues .w { font-size: 17px; } .ctl { grid-template-columns: 88px minmax(0, 1fr) 40px; gap: 8px; } }
@media (max-width: 640px) { #editor { grid-template: 60px minmax(0, 46svh) minmax(0, 1fr) / minmax(0, 1fr); grid-template-areas: "top" "mid" "side"; } #top { grid-template-columns: auto auto 1fr; } #pname, #undo, #redo { display: none; } .steps button { padding: 8px 12px; font-size: 14px; } #mid { grid-template-rows: minmax(0, 1fr) 60px 60px; padding: 0 10px; } #drop { grid-template-columns: auto minmax(0, 1fr); } #dropPct { grid-column: 1/-1; } .safe { margin-left: 0; width: 100%; } .choices { grid-template-columns: 1fr; } #projects { grid-template-columns: 1fr 1fr; } #projects .del { opacity: 1; } }
/* ---------- motion ---------- quick, small, and only where something changed */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.3, 1.28, .5, 1); }
@keyframes pane { from { opacity: 0; transform: translateY(8px); } } @keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.965); } } @keyframes rise { from { opacity: 0; transform: translateY(18px); } } @keyframes fade { from { opacity: 0; } } @keyframes land { 0% { opacity: 0; transform: translateY(-.34em) rotate(6deg) scale(1.16); } 60% { opacity: 1; transform: translateY(.03em) rotate(-1deg) scale(.985); } } @keyframes toast { from { opacity: 0; transform: translate(-50%, 16px) scale(.97); } }
button, .choices label { transition: background-color .16s, color .16s, transform .16s var(--ease); } button:not(:disabled):active { transform: scale(.96); } #play:active { transform: scale(.9) !important; }
#editor { animation: fade .25s; } #left, #looks, #adjust, #fx, #lookSwitch { animation: pane .26s var(--ease); } .menu, #fontPop { animation: pop .18s var(--ease); transform-origin: top right; } #view .menu { transform-origin: bottom right; }
#inspect { animation: pop .2s var(--ease); transform-origin: left top; transition: top .22s var(--ease), left .22s var(--ease); } #cues li { transition: color .18s, background-color .18s; } #cues .w { transition: background-color .12s, color .12s; }
dialog[open] { animation: pop .24s var(--ease); } dialog[open]::backdrop { animation: fade .24s; } #toast { animation: toast .28s var(--spring); } .acc[open] > div { animation: pane .24s var(--ease); } .look canvas { transition: transform .2s var(--ease); } .look:hover canvas { transform: scale(1.025); } .choices label:active { transform: scale(.98); }
.start h1 { animation: rise .5s var(--ease) both; } .start .brush { animation: land .6s .32s var(--spring) both; } #drop { animation: rise .5s .08s var(--ease) both; } .ask, .under { animation: rise .5s .04s var(--ease) both; } #projects li { animation: rise .45s var(--ease) both; } #projects li:nth-child(1) { animation-delay: .14s; } #projects li:nth-child(2) { animation-delay: .18s; } #projects li:nth-child(3) { animation-delay: .22s; } #projects li:nth-child(4) { animation-delay: .26s; } #projects li:nth-child(n+5) { animation-delay: .3s; } #dropVid { animation: pop .35s var(--spring); }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after, ::backdrop { transition: none !important; animation: none !important; } }

/* The web app: feedback during the private test. */
#vocabBox { display: none; }
#fbBtn { position: fixed; left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 30; background: var(--inv); color: var(--on-inv); font-weight: 800; padding: 10px 18px; box-shadow: 0 6px 24px var(--drop); } #fbBtn:hover { background: var(--accent); color: var(--on-accent); } body:has(#editor:not([hidden])) #fbBtn { display: none; } #fbTop { color: var(--mute); background: none; }
#fbDlg { width: min(520px, calc(100vw - 32px)); border: 0; border-radius: 22px; background: var(--panel); color: var(--ink); padding: 26px; } #fbDlg::backdrop { background: #000a; } #fbDlg h2 { font-size: 28px; letter-spacing: -.04em; margin-bottom: 14px; } #fbDlg textarea { width: 100%; resize: vertical; } #fbDlg pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 500 13px/1.45 var(--ui); color: var(--mute); max-height: 200px; overflow: auto; } #fbDlg summary { cursor: pointer; color: var(--mute); margin: 10px 0; } #fbDlg p { min-height: 1.4em; color: var(--say); margin: 8px 0; }
.testing { background: var(--accent); color: #191919; font-weight: 700; border-radius: 99px; padding: 8px 18px; margin: 0; justify-self: start; }
#home .testing { align-self: flex-start; } #home { padding-bottom: 100px; } #home:has(+ #editor) .testing { margin: -30px 0 -26px; }
