@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: #ecebe6; --ink: #161512; --mute: #86827a; --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;
  --c-tool: #ffb84d; --c-edit: #7fb2ff; --c-layer: #b58cff; --c-view: #5fd3a6; --c-color: #ff8a7a; --u: 1fr; }
* { 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, .ctl, .layers, .kbwrap, .detail, .list, .tips, .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: 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-top: 10px; padding-bottom: 14px; }
h1 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; word-break: keep-all; }
h1 .q { font: 800 52px/1.08 var(--kr); letter-spacing: -.055em; } h1 em { font: italic 400 32px/1.1 Serif, serif; letter-spacing: -.02em; color: #4a4741; }
.lede { margin: 8px 0 0; font-size: 15.5px; color: #3b3934; word-break: keep-all; } .lede b { background: linear-gradient(transparent 58%, var(--ac) 58%); padding: 0 2px; } .lede span { font: 400 13.5px var(--sans); color: var(--mute); }
.ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 10px; }
.seg { display: inline-flex; padding: 4px; border-radius: 13px; background: #fff; box-shadow: 0 0 0 1px var(--line); gap: 2px; }
.seg button { all: unset; cursor: pointer; height: 34px; padding: 0 14px; border-radius: 9px; font: 700 14px var(--sans); color: #57534b; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: background .2s, color .2s; }
.seg button small { font: 600 11px var(--kr); color: var(--mute); } .seg button.on { background: var(--ink); color: #fff; } .seg button.on small { color: #bdb7ab; }
.seg button s { width: 16px; height: 16px; border-radius: 5px; display: inline-grid; place-items: center; font: 800 9px var(--sans); color: #fff; text-decoration: none; }
.field { margin-left: auto; display: flex; align-items: center; height: 42px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); padding: 0 6px 0 14px; width: 340px; }
.field input { all: unset; flex: 1; font: 600 15px var(--kr); min-width: 0; caret-color: #e0451f; } .field input::placeholder { color: #aaa49a; font-weight: 400; }
.field button { all: unset; cursor: pointer; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font: 500 20px var(--sans); color: #77736b; } .field button:hover { background: #f0ede6; }
.layers { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; padding-bottom: 10px; }
.layers > span { font: 600 12.5px var(--kr); color: var(--mute); margin-right: 4px; }
.ly { all: unset; cursor: pointer; height: 30px; padding: 0 11px; border-radius: 99px; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px var(--line); font: 700 13px var(--sans); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ly i { font: 600 11px var(--mono); font-style: normal; color: var(--mute); } .ly.on { background: var(--ink); color: var(--ac); box-shadow: none; } .ly.on i { color: #bdb7ab; }
.kbwrap { padding-bottom: 8px; }
.kb { display: grid; grid-template-columns: repeat(58, minmax(0, 1fr)); gap: 6px; padding: 14px; border-radius: 22px; background: #1d1c19; box-shadow: 0 24px 50px -24px rgba(20,15,5,.55), inset 0 1px 0 rgba(255,255,255,.06); user-select: none; -webkit-user-select: none; }
.k { all: unset; cursor: pointer; position: relative; min-width: 0; height: 64px; border-radius: 10px; background: #2c2a26; box-shadow: inset 0 -3px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); padding: 7px 8px 9px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: background .18s, transform .08s; color: #8d887e; }
.k b { font: 600 14px/1 var(--sans); color: #a9a397; } .k span { font: 600 11.5px/1.18 var(--kr); color: #f4f1ea; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--cc, transparent); }
.k.has { background: #3a3732; } .k.has b { color: #fff; } .k.dim span { display: none; } .k:hover { background: #46423b; }
.k.mod b { font-size: 17px; } .k.mod span { color: #a9a397; font-weight: 400; font-size: 11px; }
.k.mod.on { background: var(--ac); } .k.mod.on b, .k.mod.on span { color: #1d1c19; }
.k.down, .k.hit { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0,0,0,.35); }
.k.hit { background: #fff; } .k.hit b, .k.hit span { color: #161512; }
.k.off { opacity: .35; pointer-events: none; }
.detail { display: flex; align-items: baseline; gap: 12px; min-height: 46px; padding-top: 6px; padding-bottom: 8px; }
.detail b { font: 800 22px var(--kr); letter-spacing: -.03em; } .detail i { font: italic 400 20px Serif, serif; color: #5b574f; }
.detail .muted { font: 400 14px var(--kr); color: var(--mute); }
.keys { display: inline-flex; gap: 4px; } .cap { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 7px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 2px 0 rgba(0,0,0,.08); font: 700 14px var(--sans); white-space: nowrap; }
.list { padding-top: 10px; padding-bottom: 20px; }
.rh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; } .rh h2 { margin: 0; font: 800 24px var(--kr); letter-spacing: -.04em; } .rh em { font: italic 400 22px Serif, serif; color: #5b574f; } .rh small { font: 400 13px var(--kr); color: var(--mute); }
.cols { columns: 4 250px; column-gap: 14px; }
.grp { break-inside: avoid; margin: 0 0 14px; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px var(--line); border-radius: 14px; padding: 10px 12px; }
.grp h3 { margin: 0 0 6px; font: 800 14px var(--kr); display: flex; align-items: center; gap: 7px; } .grp h3 s { width: 10px; height: 10px; border-radius: 3px; }
.row { all: unset; cursor: pointer; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; width: 100%; padding: 5px 4px; border-radius: 8px; box-sizing: border-box; }
.row:hover, .row.on { background: #fff; } .row .keys .cap { min-width: 24px; height: 24px; font-size: 12.5px; padding: 0 6px; } .row b { font: 600 13.5px/1.3 var(--kr); } .row b small { display: block; font: 400 11.5px var(--sans); color: var(--mute); }
.row em { font: 700 10.5px var(--sans); font-style: normal; color: #fff; border-radius: 5px; padding: 1px 6px; margin-right: 6px; }
.results .row { grid-template-columns: 96px auto 1fr; }
.none { color: var(--mute); padding: 10px 0; }
.tips { padding-top: 6px; padding-bottom: 20px; }
.tipgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; }
.tip { background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px var(--line); border-radius: 14px; padding: 13px 15px; font-size: 13.5px; color: #3b3934; word-break: keep-all; } .tip b { display: block; font: 800 14.5px var(--kr); color: var(--ink); margin-bottom: 4px; } .tip span { display: block; font: 400 12px var(--sans); color: var(--mute); margin-top: 4px; }
.foot { padding-top: 8px; padding-bottom: 40px; font-size: 13px; color: #6b675e; } .foot p { margin: 6px 0; }
@media (max-width: 900px) {
  .top, .intro, .ctl, .layers, .kbwrap, .detail, .list, .tips, .foot { padding-left: 14px; padding-right: 14px; }
  h1 .q { font-size: 36px; } h1 em { font-size: 22px; } .lede { font-size: 14px; }
  .field { width: 100%; margin-left: 0; order: 3; }
  .kb { gap: 3px; padding: 8px; border-radius: 14px; } .k { height: 46px; padding: 4px 4px 6px; border-radius: 6px; } .k b { font-size: 11px; } .k span { font-size: 8.5px; -webkit-line-clamp: 2; } .k.mod b { font-size: 13px; } .k.mod span { display: none; }
  .seg button { padding: 0 9px; font-size: 13px; } .seg button small { display: none; } .seg button s { display: none; }
  .detail b { font-size: 18px; } .detail i { display: none; }
  .results .row { grid-template-columns: 1fr; gap: 4px; }
}
body.film { overflow: hidden; }
body.film .intro { padding-top: 2px; padding-bottom: 10px; } body.film h1 .q { font-size: 42px; } body.film h1 em { font-size: 28px; } body.film .lede { margin-top: 4px; font-size: 14.5px; } body.film .lede br, body.film .lede span { display: none; }
body.film .k { height: 60px; }
body.film.tall .top, body.film.tall .intro, body.film.tall .ctl, body.film.tall .layers, body.film.tall .kbwrap, body.film.tall .detail, body.film.tall .list { padding-left: 14px; padding-right: 14px; }
body.film.tall h1 .q { font-size: 38px; } body.film.tall h1 em { font-size: 22px; } body.film.tall .lede { font-size: 14px; }
body.film.tall .field { width: 100%; margin-left: 0; order: 3; } body.film.tall .seg button { padding: 0 11px; font-size: 13px; } body.film.tall .seg button small { display: none; }
body.film.tall .ly { height: 27px; padding: 0 9px; font-size: 12px; } body.film.tall .ly i { display: none; }
body.film.tall .kb { gap: 3.5px; padding: 8px; border-radius: 14px; } body.film.tall .k { height: 52px; padding: 4px 4px 6px; border-radius: 6px; } body.film.tall .k b { font-size: 11px; } body.film.tall .k span { font-size: 9px; } body.film.tall .k.mod b { font-size: 13px; } body.film.tall .k.mod span { display: none; }
body.film.tall .detail b { font-size: 19px; } body.film.tall .detail i { font-size: 16px; } body.film.tall .cols { columns: 2; } body.film.tall .results .row { grid-template-columns: 84px auto 1fr; }
.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; }
.hud { position: fixed; z-index: 90; right: 28px; bottom: 22px; display: flex; gap: 6px; padding: 10px 14px; border-radius: 16px; background: rgba(22,21,18,.92); color: #fff; font: 700 22px var(--sans); box-shadow: 0 16px 40px rgba(0,0,0,.3); opacity: 0; transition: opacity .2s; pointer-events: none; }
.hud.on { opacity: 1; } .hud .cap { background: #2c2a26; color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.4); height: 38px; min-width: 38px; font-size: 18px; }
@media (max-width: 560px) { .k span { display: none; } .k { height: 40px; } .k::after { height: 4px; } }
