:root { --bg: #111214; --paper: #f2f0ea; --ink: #141414; --sig: #e30613; --mut: #8a8a8a; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: #ececec; font: 16px/1.55 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 32px 20px 64px; }
header.top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--sig); padding-bottom: 12px; margin-bottom: 8px; }
header.top h1 { font-size: 22px; letter-spacing: .5px; }
header.top h1 b { color: var(--sig); }
header.top span { color: var(--mut); font-size: 13px; }
.hero { padding: 40px 0 28px; }
.hero h2 { font-size: clamp(30px, 5vw, 52px); line-height: 1.05; font-weight: 800; }
.hero h2 em { font-style: normal; color: var(--sig); }
.hero p { color: #bdbdbd; max-width: 640px; margin-top: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 28px; }
.card { display: block; background: #1a1b1e; border: 1px solid #2c2d31; border-radius: 10px; overflow: hidden; text-decoration: none; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--sig); }
.card .sw { height: 150px; display: flex; align-items: flex-end; padding: 14px; font-weight: 800; font-size: 22px; }
.card.swiss .sw { background: var(--paper); color: var(--ink); border-left: 14px solid var(--sig); }
.card.chalk .sw { background: #22332c; color: #f5f2e8; font-family: "Segoe Script", "Comic Sans MS", cursive; }
.card.neon .sw { background: #05060a; color: #7df9ff; text-shadow: 0 0 12px #7df9ff, 0 0 34px #0891b2; font-family: ui-monospace, Menlo, monospace; }
.card.wood .sw { background: #efe6d0; color: #0d0c0a; font-family: Georgia, serif; border: 6px solid #0d0c0a; }
.card.bp .sw { background: #16305e; color: #e7f0f9; font-family: "Courier New", monospace; }
.card.px .sw { background: #0b1026; color: #f5c518; font-family: ui-monospace, Menlo, monospace; image-rendering: pixelated; }
.card .bd { padding: 14px 16px 16px; }
.card .bd h3 { font-size: 17px; }
.card .bd p { color: var(--mut); font-size: 13.5px; margin-top: 4px; }
.card .meta { display: flex; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--mut); }
.card .meta b { color: var(--sig); font-weight: 700; }
.how { margin-top: 48px; border-top: 1px solid #2c2d31; padding-top: 24px; }
.how h2 { font-size: 22px; margin-bottom: 10px; }
.how ol { margin-left: 20px; color: #c9c9c9; display: grid; gap: 8px; max-width: 720px; }
.how code, p code { background: #222; padding: 1px 6px; border-radius: 5px; font-size: 13.5px; }
footer { margin-top: 44px; color: var(--mut); font-size: 13px; border-top: 1px solid #2c2d31; padding-top: 14px; }
/* player */
.player { background: #000; border-radius: 10px; overflow: hidden; border: 1px solid #2c2d31; }
.player canvas { width: 100%; display: block; aspect-ratio: 16/9; }
.ctrl { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: #1a1b1e; flex-wrap: wrap; }
.ctrl button { background: var(--sig); color: #fff; border: 0; border-radius: 7px; padding: 8px 14px; font-size: 14px; cursor: pointer; }
.ctrl button.ghost { background: #2c2d31; }
.ctrl button:disabled { opacity: .5; }
.ctrl input[type=range] { flex: 1; min-width: 140px; accent-color: var(--sig); }
.ctrl .t { font-size: 12.5px; color: var(--mut); font-variant-numeric: tabular-nums; }
.filmhead a { color: var(--mut); font-size: 13px; text-decoration: none; }
.filmhead a:hover { color: var(--sig); }
.filmhead h1 { font-size: clamp(24px, 4vw, 38px); margin: 6px 0 4px; }
.filmhead p { color: var(--mut); margin-bottom: 16px; max-width: 700px; }
.note { margin-top: 14px; font-size: 13px; color: var(--mut); }
