.work { margin-top: clamp(96px, 12vw, 160px); --fitw: max(320px, calc((100vh - 240px) * 1491 / 945)); }
.wk-film { margin-top: 40px; }
.wk-head h3 { font: 700 clamp(24px, 2.2vw, 30px)/1.15 var(--display); letter-spacing: -.025em; margin: 0 0 12px; }
.wk-text { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 64ch; text-wrap: pretty; }
.wk-note { margin: 10px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink-3); max-width: 64ch; }
.wk-note a { color: inherit; }
.wk-win { margin-top: 24px; cursor: pointer; }
.wk-win, .wk-sub { max-width: var(--fitw); }
.wk-win canvas { display: block; width: 100%; height: auto; aspect-ratio: 1491 / 945; }
.wk-play { position: absolute; left: 50%; top: calc(50% + 16px); width: 68px; height: 68px; margin: -34px 0 0 -34px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .92); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); opacity: 0; transform: scale(.9); transition: opacity .25s, transform .25s; pointer-events: none; }
.wk-play::before { content: ""; position: absolute; left: 27px; top: 22px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #15161e; }
.paused .wk-play { opacity: 1; transform: none; }
.wk-sub { margin-top: 14px; }
.wk-track { height: 15px; padding: 6px 0; cursor: pointer; }
.wk-track i { display: block; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) calc(var(--p, 0) * 100%), var(--line-2) 0); }
.wk-line { display: flex; align-items: center; gap: 14px; min-height: 48px; margin: 6px 0 0; font-size: 19px; line-height: 1.4; color: var(--ink); }
.wk-key:empty { display: none; }
.wk-key kbd {
  display: inline-block; font: 600 17px/1 var(--mono); color: var(--ink); background: var(--cap); padding: 8px 12px 9px; border-radius: 9px; white-space: nowrap;
  box-shadow: 0 0 0 1px var(--cap-edge), 0 3px 0 var(--cap-edge);
}
.wk-line.hit .wk-key > * { animation: wk-hit .35s cubic-bezier(.2, .9, .3, 1.3); }
.wk-line.hit .wk-say { animation: wk-say .4s ease-out; }
@keyframes wk-hit { from { transform: translateY(3px); box-shadow: 0 0 0 1px var(--accent), 0 0 0 var(--cap-edge); } }
@keyframes wk-say { from { opacity: .2; } }

::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }

@media (max-width: 860px) { .wk-line { font-size: 17px; } }
