:root { color-scheme: dark; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #eaf0f6; background: #101923; font-synthesis: none; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, canvas:focus-visible { outline: 2px solid #a9eb76; outline-offset: 5px; }
[hidden] { display: none !important; }
.site-header { background: #0c131c; border-bottom: 1px solid #26303d; }
.header-inner { max-width: 1248px; margin: auto; min-height: 84px; display: flex; align-items: center; gap: 58px; padding: 0 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 750; letter-spacing: -.8px; white-space: nowrap; }
.brand-icon { display: inline-grid; place-items: center; width: 33px; height: 33px; background: #b6eb80; color: #142022; font: bold 19px ui-monospace, monospace; border-radius: 6px; letter-spacing: -2px; padding-right: 2px; }
nav { display: flex; align-self: stretch; align-items: center; gap: 30px; font-size: 13px; font-weight: 600; }
nav a { display: flex; height: 100%; align-items: center; color: #96a5b5; }
nav .nav-active { color: #b6eb80; border-bottom: 2px solid #b6eb80; }
.header-note { margin-left: auto; color: #8b9aaa; font-size: 12px; }
.header-note i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #b6eb80; margin-right: 7px; }
.shell { max-width: 1248px; margin: auto; padding: 0 32px; }
.hero { min-height: 400px; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 30px; padding: 56px 0 48px; }
.eyebrow { font: 10px/1.5 ui-monospace, monospace; letter-spacing: 1.8px; color: #94a4b6; margin: 0 0 16px; }
.hero .eyebrow { color: #b6eb80; }
h1 { font-size: clamp(36px, 4vw, 52px); letter-spacing: -2px; line-height: 1.13; margin: 0 0 21px; font-weight: 750; }
h1 span { color: #94a6b9; }
.hero-description { color: #a4b1c1; line-height: 1.8; font-size: 14px; margin-bottom: 28px; }
.primary-button { display: inline-flex; gap: 26px; background: #b6eb80; color: #192422; font-size: 12px; font-weight: 750; padding: 13px 19px; border-radius: 4px; }
.primary-button:hover { background: #caf79e; }
.hero-note { font-size: 11px; color: #8091a5; margin-left: 15px; }
.hero-art { height: 295px; position: relative; background-image: radial-gradient(#30404f 1px, transparent 1px); background-size: 15px 15px; mask-image: linear-gradient(90deg, transparent, black 12%, black 85%, transparent); }
.pixel-window { position: absolute; width: 222px; border: 1px solid #516071; background: #090e15; border-radius: 7px; overflow: hidden; box-shadow: 0 18px 38px #0006; }
.window-bar { display: flex; justify-content: space-between; background: #293647; font: 9px ui-monospace, monospace; padding: 9px 10px; color: #b3c4d4; }
.pixel-window img { width: 100%; height: 222px; display: block; image-rendering: pixelated; }
.window-back { right: 20px; top: 0; transform: rotate(7deg); }
.window-front { left: 36px; top: 31px; transform: rotate(-6deg); }
.art-caption { position: absolute; bottom: 0; right: 42px; color: #72869c; font: 9px ui-monospace, monospace; letter-spacing: 1px; }
#library { border-top: 1px solid #2a3543; padding-top: 30px; }
.library-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.library-heading .eyebrow { font-size: 9px; margin-bottom: 6px; }
h2 { font-size: 25px; letter-spacing: -.8px; margin: 0; }
#total-count { color: #8d9caf; font: 12px ui-monospace, monospace; background: #253240; border-radius: 4px; padding: 4px 6px; margin-left: 8px; vertical-align: middle; }
.search { display: flex; gap: 10px; align-items: center; background: #0c141e; border: 1px solid #2c3a49; border-radius: 5px; padding: 9px 13px; color: #8295ab; }
.search span { font-size: 23px; line-height: 1; }
.search input { width: 230px; background: transparent; border: 0; color: #eaf0f6; font-size: 12px; padding: 4px; }
.search input::placeholder { color: #8797ab; }
.library-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 24px 0 19px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { border: 1px solid transparent; border-radius: 4px; background: transparent; color: #9aaabe; padding: 8px 14px; font-size: 12px; cursor: pointer; }
.filters button:hover { background: #263749; color: #fff; }
.filters button[aria-pressed="true"] { color: #c3ef9b; background: #253d33; border-color: #395443; }
#result-count { font: 10px ui-monospace, monospace; color: #8e9eb0; white-space: nowrap; }
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.demo-card { display: flex; gap: 16px; align-items: center; padding: 16px; background: linear-gradient(110deg, #1c2c3c, #1a2634); border: 1px solid #2e3e4f; border-radius: 6px; transition: border-color .15s, background .15s, transform .15s; }
.demo-card:hover { border-color: #809c6d; background: #243848; transform: translateY(-3px); }
.demo-card img { width: 128px; height: 128px; flex: 0 0 128px; object-fit: contain; image-rendering: pixelated; border-radius: 3px; background: #090e15; box-shadow: 0 3px 8px #0003; }
.card-content { min-width: 0; }
.category { font: 8px ui-monospace, monospace; text-transform: uppercase; letter-spacing: 1.2px; color: #a8c4e1; }
.category-physics { color: #70cbbb; }.category-graphics { color: #c1a2e2; }.category-sound { color: #e3bd83; }
h3 { font-size: 16px; letter-spacing: -.3px; margin: 7px 0; }
.card-description { color: #a5b4c5; font-size: 11px; line-height: 1.6; margin: 0 0 8px; }
.card-detail { display: block; font-size: 9px; line-height: 1.5; color: #879aae; }
.play-link { display: block; color: #bee998; font-size: 10px; font-weight: 650; margin-top: 12px; }
.library-footnote { color: #8a9bae; font-size: 10px; text-align: center; margin: 24px 0 40px; }
#empty { text-align: center; padding: 48px 0; color: #b3c2d2; }
.about { display: grid; grid-template-columns: 1fr 1.5fr; gap: 70px; border-top: 1px solid #2a3543; padding: 36px 0; }
.about h2 { line-height: 1.35; }.about p:not(.eyebrow) { font-size: 12px; line-height: 1.9; color: #a0b0c3; margin: 0 0 10px; }
.native-note { border-left: 2px solid #455a70; padding-left: 15px; }.native-note strong { color: #c6d2de; font-weight: 500; }
code { font-size: 11px; overflow-wrap: anywhere; }
.site-footer { display: flex; gap: 24px; align-items: center; border-top: 1px solid #2a3543; padding: 25px 0; color: #91a1b3; font-size: 10px; }
.site-footer .brand { font-size: 14px; }.site-footer .brand-icon { width: 25px; height: 25px; font-size: 14px; }
.site-footer > a:last-child { margin-left: auto; white-space: nowrap; }
.player-page { min-height: 100vh; background: radial-gradient(ellipse at top, #213548, #0c141e 75%); }
.player-nav { max-width: 1100px; margin: auto; padding: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.player { width: min(94vw, calc(75vh * 4 / 3)); margin: 15px auto 40px; }
.player-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.player h1 { font-size: 25px; letter-spacing: -.6px; margin: 0; }
#variant { color: #b6eb80; font-size: 11px; }
canvas { display: block; width: 100%; aspect-ratio: 4 / 3; background: #000; image-rendering: pixelated; border: 1px solid #35485b; border-radius: 4px; }
.player-controls { display: flex; justify-content: space-between; gap: 20px; padding-top: 15px; color: #acbace; font: 11px/1.8 ui-monospace, monospace; }
#status { white-space: nowrap; color: #b6eb80; }.player-controls input { max-width: 100%; font: inherit; }
.player-hint { color: #8b9db0; font-size: 11px; }#error { color: #ffc596; line-height: 1.7; }
@media (max-width: 1100px) { .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.header-note { display: none; }.hero-note { display: block; margin: 13px 0 0; }.window-back { right: 8px; }.window-front { left: 18px; } }
@media (max-width: 700px) { .shell { padding: 0 20px; }.header-inner { padding: 0 20px; min-height: 70px; gap: 28px; }nav { gap: 18px; font-size: 11px; }.brand { font-size: 17px; }.hero { grid-template-columns: 1fr; padding: 38px 0; gap: 24px; }.hero-art { display: none; }h1 { font-size: 40px; }.hero-description { font-size: 13px; }.hero-note { display: inline; margin-left: 12px; font-size: 10px; }.library-heading { align-items: start; flex-direction: column; }.search { width: 100%; }.search input { width: 100%; }.library-toolbar { align-items: start; flex-direction: column; gap: 12px; }.filters button { padding: 8px 11px; }.demo-grid { grid-template-columns: 1fr; }.demo-card { gap: 20px; }.card-description { font-size: 12px; }.about { grid-template-columns: 1fr; gap: 22px; }.site-footer { flex-wrap: wrap; }.site-footer > span { order: 3; width: 100%; }.player-controls { flex-direction: column; gap: 10px; }.player-nav { padding: 18px; }.player-heading { align-items: start; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.demo-card { transition: none; }.demo-card:hover { transform: none; } }
