@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: #f4f2ec; --ink: #141414; --mute: #85817a; --line: rgba(0,0,0,.09); --ac: #ffd23f; --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; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 16px 40px 4px; }
.brand { display: flex; align-items: center; gap: 8px; } .brand b { font: 800 18px var(--kr); letter-spacing: -.03em; } .brand span { font: 700 12px var(--mono); background: var(--ink); color: var(--ac); border-radius: 6px; padding: 2px 7px; } .brand i { font: 500 12px var(--mono); color: var(--mute); font-style: normal; }
.gh { font: 600 14px var(--sans); text-decoration: none; }
.intro { padding: 12px 40px 16px; max-width: 1560px; margin: 0 auto; }
h1 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 20px; word-break: keep-all; }
h1 .q { font: 800 56px/1.08 var(--kr); letter-spacing: -.055em; } h1 em { font: italic 400 36px/1.1 Serif, serif; letter-spacing: -.02em; color: #4a4741; }
.lede { margin: 10px 0 0; font-size: 16px; color: #3b3934; max-width: 980px; } .lede b { background: linear-gradient(transparent 58%, var(--ac) 58%); padding: 0 2px; } .lede span { font: 400 14px var(--sans); color: var(--mute); }
.rh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; border-top: 1.5px solid var(--ink); padding-top: 14px; margin-bottom: 16px; } .rh h2 { margin: 0; font: 800 26px var(--kr); letter-spacing: -.04em; } .rh em { font: italic 400 22px Serif, serif; color: #4a4741; } .rh small { width: 100%; font: 500 12.5px var(--kr); color: var(--mute); }
.tips ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } .tips li { background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); padding: 16px; font-size: 13.5px; line-height: 1.55; color: #3b3934; } .tips li b { display: block; font: 800 16px var(--kr); margin-bottom: 4px; color: var(--ink); } .tips li span { display: block; margin-top: 6px; font: 400 12px var(--sans); color: var(--mute); }
.foot { max-width: 1560px; margin: 0 auto; padding: 22px 40px 60px; border-top: 1px solid var(--line); color: #6b675e; font-size: 13.5px; } .foot p { margin: 0 0 10px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 160%); padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; font: 600 14px var(--kr); box-shadow: 0 14px 40px rgba(0,0,0,.25); transition: transform .45s cubic-bezier(.3,1.4,.5,1), visibility 0s .45s; visibility: hidden; max-width: min(92vw, 620px); z-index: 50; }
.toast.on { transform: translate(-50%, 0); visibility: visible; transition: transform .45s cubic-bezier(.3,1.4,.5,1), visibility 0s; } .toast pre { margin: 6px 0 0; font: 500 11.5px/1.45 var(--mono); color: #c9c4b9; white-space: pre-wrap; word-break: break-all; }
/* film */
body.film { overflow: hidden; }
.cur { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; margin: -10px 0 0 -14px; filter: drop-shadow(0 3px 4px rgba(20, 15, 10, .3)); }
.cur svg path { fill: #fff; stroke: #151515; stroke-width: 1.3; stroke-linejoin: round; } .cur .closed { display: none; } .cur.down .closed { display: block; } .cur.down .open { display: none; }
.cur i { position: absolute; left: 34px; top: 30px; font: 600 13px var(--kr); font-style: normal; background: var(--ink); color: #fff; border-radius: 7px; padding: 3px 9px; white-space: nowrap; } .cur i:empty { display: none; } .cur.flip i { left: auto; right: 4px; top: 36px; }
.tips { max-width: 1560px; margin: 0 auto; padding: 26px 40px 30px; }
/* app */
.app { --h: min(600px, calc(100vh - 210px)); max-width: 1560px; margin: 0 auto; padding: 4px 40px 10px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; }
.stage { position: relative; height: var(--h); aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 18px 50px -20px rgba(30,20,10,.35); background: #ddd; }
#poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ov { position: absolute; inset: 0; padding: 20px 22px 22px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto auto; color: #fff; pointer-events: none; text-shadow: 0 1px 12px rgba(0,0,0,.18); }
.ov.dark { color: #151515; text-shadow: none; }
.ov #ov-no { font: 700 12px var(--mono); letter-spacing: .02em; } .ov #ov-pal { font: 500 10.5px var(--mono); opacity: .8; text-align: right; white-space: pre; }
.ov b { grid-column: 1 / -1; grid-row: 3; font: 800 clamp(34px, calc(var(--h) * .1), 64px)/1.02 var(--kr); letter-spacing: -.055em; word-break: keep-all; }
.ov em { grid-column: 1 / -1; grid-row: 4; font: italic 400 clamp(22px, calc(var(--h) * .06), 38px)/1.1 Serif, serif; margin-top: 4px; }
.side { min-width: 0; height: var(--h); display: flex; flex-direction: column; gap: 12px; }
.panel { background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); padding: 14px 16px 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 22px; }
.nm { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .nm span { font: 700 11px var(--mono); background: var(--ink); color: #fff; border-radius: 6px; padding: 2px 6px; align-self: center; } .nm b { font: 800 22px var(--kr); letter-spacing: -.04em; } .nm em { font: italic 400 19px Serif, serif; color: #4a4741; }
.nd { grid-column: 1; margin: 0; font-size: 13.5px; line-height: 1.5; color: #2f2d29; word-break: keep-all; } .nd span { display: block; font: 400 12px/1.45 var(--sans); color: var(--mute); margin-top: 2px; }
.nu { grid-column: 1; margin: 0; font: 600 12px var(--kr); color: #6b675e; }
.ctl { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.rg { display: grid; grid-template-columns: 74px 1fr 28px; align-items: center; gap: 10px; } .rg span { font: 700 13px var(--kr); } .rg small { font: 500 10.5px var(--mono); color: var(--mute); margin-left: 5px; } .rg b { font: 600 12px var(--mono); text-align: right; color: #55524b; }
.rg input { appearance: none; height: 6px; border-radius: 9px; background: linear-gradient(90deg, var(--ink) var(--v, 50%), #e2ded4 var(--v, 50%)); cursor: pointer; margin: 0; }
.rg input::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 2px 6px rgba(0,0,0,.2); }
.rg input::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 2px 6px rgba(0,0,0,.2); }
.pals { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.pal { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 0; height: 32px; padding: 0 10px 0 6px; border-radius: 99px; background: #f1eee7; font: 600 12.5px var(--kr); color: #45423b; transition: background .2s, color .2s; }
.pal i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff; margin-right: -4px; } .pal span { margin-left: 10px; } .pal:hover { background: #e6e1d4; } .pal.on { background: var(--ink); color: #fff; } .pal.on i { box-shadow: 0 0 0 1.5px var(--ink); }
.ex { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: flex; background: #f1eee7; border-radius: 11px; padding: 3px; } .seg button { all: unset; cursor: pointer; height: 30px; padding: 0 11px; border-radius: 8px; display: grid; place-items: center; font: 600 12.5px var(--kr); color: #6b675e; } .seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.btn { all: unset; cursor: pointer; height: 36px; padding: 0 14px; border-radius: 11px; background: #f1eee7; font: 700 13px var(--kr); color: #2b2925; display: inline-flex; align-items: center; transition: background .2s, transform .15s; white-space: nowrap; } .btn:hover { background: #e6e1d4; } .btn:active { transform: scale(.97); }
.btn.main { background: var(--ink); color: #fff; } .btn.main:hover { background: #333; } .btn.ic { width: 36px; padding: 0; justify-content: center; font: 600 17px var(--sans); margin-left: auto; }
.lib { flex: 1; min-height: 0; overflow: auto; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); padding: 4px 14px 14px; scrollbar-width: thin; }
.lib h3 { margin: 10px 2px 8px; display: flex; align-items: baseline; gap: 8px; } .lib h3 b { font: 800 14px var(--kr); letter-spacing: -.02em; } .lib h3 em { font: italic 400 15px Serif, serif; color: var(--mute); }
.tg { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.tc { all: unset; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 1px; border-radius: 12px; padding: 4px 4px 7px; transition: background .2s, box-shadow .2s; min-width: 0; }
.tc canvas { width: 100%; aspect-ratio: 4 / 5; border-radius: 9px; display: block; box-shadow: 0 0 0 1px var(--line); margin-bottom: 5px; background: #eee; }
.tc b { font: 700 12.5px/1.25 var(--kr); letter-spacing: -.03em; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tc small { font: 500 10px/1.2 var(--sans); color: var(--mute); padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc i { position: absolute; top: 9px; right: 9px; font: 700 9px var(--mono); font-style: normal; background: rgba(255,255,255,.92); color: #111; border-radius: 5px; padding: 1px 4px; }
.tc:hover { background: #f4f2ec; } .tc.on { background: var(--ink); } .tc.on b { color: #fff; } .tc.on small { color: #aaa49a; }
body.nogl .app::before { content: '이 브라우저는 WebGL을 지원하지 않아요 · WebGL is not available'; grid-column: 1 / -1; }
@media (max-width: 1100px) { .panel { grid-template-columns: 1fr; } .ctl { grid-column: 1; grid-row: auto; } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; --h: auto; } .stage { height: auto; width: min(100%, 52vh); justify-self: center; } .side { height: auto; } .lib { overflow: visible; }
  .ov b { font: 800 clamp(30px, 9vw, 56px)/1.02 var(--kr); } .ov em { font: italic 400 clamp(20px, 5.5vw, 34px)/1.1 Serif, serif; }
}
@media (max-width: 800px) { .tips ul { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .top, .intro, .app, .tips { padding-left: 14px; padding-right: 14px; } .foot { padding: 20px 14px 40px; }
  h1 .q { font-size: 34px; } h1 em { font-size: 23px; } .lede { font-size: 14.5px; }
  .stage { width: 100%; } .tg { grid-template-columns: repeat(3, minmax(0, 1fr)); } .btn.ic { margin-left: 0; }
}
body.film .intro { padding-top: 4px; padding-bottom: 12px; } body.film h1 .q { font-size: 44px; } body.film h1 em { font-size: 30px; } body.film .lede { margin-top: 6px; font-size: 14.5px; }
body.film .app { --h: calc(100vh - 196px); }
body.film.tall .top { padding: 12px 16px 0; } body.film.tall .intro { padding: 4px 16px 10px; } body.film.tall h1 .q { font-size: 28px; } body.film.tall h1 em { font-size: 20px; } body.film.tall .lede { display: none; }
body.film.tall .app { grid-template-columns: 1fr; padding: 0 16px; gap: 10px; }
body.film.tall .stage { height: 33vh; width: 100%; aspect-ratio: auto; }
body.film.tall .ov { padding: 14px 16px 16px; } body.film.tall .ov b { font-size: 40px; } body.film.tall .ov em { font-size: 25px; }
body.film.tall .side { height: calc(100vh - 33vh - 138px); } body.film.tall .lib { overflow: auto; }
body.film.tall .panel { grid-template-columns: 1fr; padding: 10px 12px; gap: 7px; } body.film.tall .nd span, body.film.tall .nu { display: none; } body.film.tall .nd { font-size: 12.5px; }
body.film.tall .ctl { grid-column: 1; grid-row: auto; gap: 6px; } body.film.tall .pals { padding-top: 8px; gap: 5px; } body.film.tall .pal { height: 28px; padding-right: 8px; font-size: 11.5px; } body.film.tall .pal span { margin-left: 8px; }
body.film.tall .ex { gap: 6px; } body.film.tall .btn { padding: 0 11px; font-size: 12.5px; } body.film.tall .seg button { padding: 0 9px; }
body.film.tall .tg { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; } body.film.tall .lib { padding: 2px 10px 10px; } body.film.tall .lib h3 { margin: 8px 2px 6px; }
body.film.tall .pal span { display: none; } body.film.tall .pal { padding-right: 10px; }
.ov::before { content: ''; position: absolute; inset: 45% 0 0 0; background: linear-gradient(transparent, rgba(0,0,0,.32)); transition: background .3s; z-index: -1; } .ov { z-index: 0; isolation: isolate; }
.ov.dark::before { background: linear-gradient(transparent, rgba(255,255,255,.3)); }
