@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700;750;800&family=Noto+Sans+TC:wght@400;450;500;550;600;650;700;750;800&display=swap');

:root { --bg: #f8f9fb; --surface: #fff; --text: #2b2c34; --muted: #8b8d98; --subtle: #686b78; --line: #e9eaf0; --primary: #7859db; --primary-soft: #eee9fb; --sidebar: 230px; --radius: 14px; font-family: 'DM Sans', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); font-synthesis: none; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-size: 13px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
button { touch-action: manipulation; }
button:disabled, select:disabled { cursor: default; opacity: .55; }
button, a, input, select { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--primary); }
button, a { transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
::selection { background: #e1d5fc; color: #4a308c; }
.icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.logo-mark { width: 30px; height: 30px; color: var(--primary); flex-shrink: 0; }
.skip-link { position: fixed; top: -100px; left: 10px; padding: 14px; background: var(--surface); z-index: 100; border: 1px solid var(--primary); border-radius: 8px; }
.skip-link:focus { top: 10px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 30px 18px 15px; background: var(--surface); border-right: 1px solid var(--line); z-index: 25; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 7px; font-size: 26px; font-weight: 800; letter-spacing: -1.4px; margin: 0 12px 29px; }
.brand .logo-mark { width: 39px; height: 39px; }
.brand-css { color: var(--primary); }
.workspace-label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--bg); padding: 11px 10px; border-radius: 8px; font-size: 11px; font-weight: 550; margin-bottom: 30px; }
.workspace-symbol { width: 28px; height: 29px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; font-size: 13px; color: var(--primary); font-weight: 700; }
.workspace-label small { display: block; font-family: 'DM Sans', sans-serif; font-size: 8px; font-weight: 400; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.version { font-size: 8px; color: var(--muted); margin-left: auto; align-self: flex-start; padding-top: 2px; }
.nav-label { display: flex; align-items: center; gap: 9px; margin: 0 13px 12px; font-size: 10px; font-weight: 500; letter-spacing: .4px; color: var(--muted); }
.nav-label span { font-size: 7px; letter-spacing: .8px; opacity: .8; }
.category-nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border-radius: 7px; padding: 11px 13px; font-size: 13px; color: var(--subtle); min-height: 41px; }
.nav-item .icon { width: 17px; height: 17px; color: #8a8c99; }
.nav-item small { margin-left: auto; font-size: 10px; color: #999ba6; }
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 550; }
.nav-item.active .icon { color: var(--primary); }
.nav-item.active small { color: var(--primary); background: #ffffff90; border-radius: 4px; padding: 1px 5px; margin-right: -5px; }
.nav-item .nav-external { width: 13px; height: 13px; margin-left: auto; opacity: .7; }
.nav-divider { margin: 22px 12px; border-top: 1px solid var(--line); }
.sidebar-bottom { margin-top: auto; padding-top: 40px; }
.sidebar-note { background: #f6f4fc; border: 1px solid #eee9f7; border-radius: 9px; margin: 0 3px 19px; padding: 15px; }
.note-mascot { display: block; margin-bottom: 9px; }
.note-mascot .logo-mark { display: block; width: 38px; height: 38px; }
.sidebar-note strong { font-size: 11px; letter-spacing: .3px; font-weight: 550; }
.sidebar-note p { color: #8a8599; font-size: 10px; line-height: 1.9; margin: 8px 0 13px; }
.sidebar-note button { display: flex; align-items: center; justify-content: space-between; width: 100%; font-size: 10px; font-weight: 500; color: #8567c5; padding: 0; }
.sidebar-note button .icon { width: 14px; }
.sidebar-note button:hover { color: #4b2b8d; }
.sidebar-footer { display: flex; align-items: center; justify-content: space-between; margin: 0 9px; }
.sidebar-footer > span { font-size: 9px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sidebar-footer i { width: 5px; height: 5px; background: #8fbaa0; border-radius: 50%; }
.icon-button { width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--subtle); }
.icon-button:hover { color: var(--primary); background: var(--primary-soft); }
.theme-button .icon { width: 15px; height: 15px; }
.page { margin-left: var(--sidebar); }
.topbar { height: 73px; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 20; }
.breadcrumb { display: flex; align-items: center; gap: 15px; font-size: 11px; }
.breadcrumb-home { color: var(--muted); }
.breadcrumb-slash { color: #c5c5ce; font-size: 13px; }
.breadcrumb strong { font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 25px; }
.language-control { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.language-label { color: var(--muted); font-size: 10px; }
#language-select { max-width: 122px; min-height: 34px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--surface); cursor: pointer; font-size: 11px; }
#language-select:hover { border-color: var(--primary); }
.free-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.free-note > span { width: 5px; height: 5px; background: #88ac91; border-radius: 50%; }
.guide-link { display: inline-flex; gap: 7px; align-items: center; border: 1px solid var(--line); padding: 7px 11px; border-radius: 6px; font-size: 10px; }
.guide-link:hover { border-color: #c6b7e7; background: var(--primary-soft); }
.guide-link .icon { width: 12px; height: 12px; }
.mobile-menu { display: none; }
main { max-width: 1510px; margin: 0 auto; padding: 31px 42px 0; }
.hero { position: relative; display: flex; min-height: 260px; padding: 27px 36px; overflow: hidden; background: #f1eff8; border: 1px solid #e8e3f3; border-radius: 14px; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 86% 50%, #e9e3f7bb, transparent 65%); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; flex: 1; }
.eyebrow { display: flex; align-items: center; gap: 7px; font-size: 8px; letter-spacing: 1.1px; color: #8a7aa9; font-weight: 600; white-space: nowrap; }
.eyebrow-dot { display: inline-block; width: 5px; height: 5px; background: #a99ac9; border-radius: 50%; }
h1 { font-size: 40px; line-height: 1.36; font-weight: 750; letter-spacing: 1px; margin: 16px 0 12px; position: relative; width: fit-content; }
h1 br { display: none; }
h1 > span { color: var(--primary); }
.hero-underline { position: absolute; width: 157px; bottom: -7px; right: 1px; color: #c9b8ed; height: 12px; }
.hero-copy > p { color: #81798f; line-height: 1.95; font-size: 12px; letter-spacing: .3px; margin: 16px 0 21px; }
.hero-actions { display: flex; align-items: center; gap: 17px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 7px; background: var(--primary); color: #fff; padding: 11px 16px; font-size: 11px; font-weight: 500; border: 1px solid transparent; box-shadow: 0 2px 3px #6040aa13; }
.primary-button:hover { background: #6545c3; box-shadow: 0 4px 12px #7651c830; }
.primary-button .icon { width: 15px; height: 15px; }
.hero-actions > span { font-size: 9px; color: #a29bad; }
.hero-art { position: relative; width: 365px; flex-shrink: 0; margin: -22px -6px -12px 0; }
.orbit-ring { position: absolute; width: 295px; height: 210px; border: 1px solid #d9d0ea90; border-radius: 50%; transform: rotate(-27deg); left: 42px; top: 24px; }
.ring-two { width: 360px; height: 253px; left: 10px; top: 4px; border-style: dashed; border-color: #dbd2e95c; }
.art-motion-card { position: absolute; top: 24px; left: 114px; width: 174px; height: 178px; background: #ffffffaa; border: 1px solid #ffffff; border-radius: 13px; box-shadow: 0 20px 35px #9b84bd17; transform: rotate(8deg); padding: 14px; }
.art-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 8px; color: #938b9e; }
.art-card-top > span:first-child { display: flex; align-items: center; gap: 5px; }
.art-card-top i { width: 4px; height: 4px; border-radius: 50%; background: #b59ada; }
.art-shape { display: grid; place-items: center; height: 107px; }
.art-shape .logo-mark { width: 98px; height: 98px; filter: drop-shadow(0 7px 4px #9d7ccc22); animation: puffi-float 4s ease-in-out infinite; transform-origin: 48% 55%; }
.art-card-bottom { display: flex; justify-content: space-between; font-size: 9px; font-weight: 500; color: #7b718b; }
.art-code-card { position: absolute; width: 227px; height: 83px; background: #fff; border: 1px solid #e9e3f1; border-radius: 9px; padding: 12px 13px; top: 158px; left: 48px; transform: rotate(-5deg); box-shadow: 0 10px 23px #9984b218; }
.art-code-card > div { display: flex; gap: 4px; align-items: center; margin-bottom: 11px; }
.art-code-card i { width: 4px; height: 4px; border-radius: 50%; background: #e8dee9; }
.art-code-card i:first-child { background: #eec1c7; }
.art-code-card i:nth-child(2) { background: #ecdfb7; }
.art-code-card i:nth-child(3) { background: #c2dcc9; }
.art-code-card small { margin-left: auto; font-size: 6px; color: #b2a9b8; }
.art-code-card code { font-size: 8px; line-height: 1.9; color: #807489; }
.art-code-card em { font-style: normal; color: #a586ce; }
.art-code-card b { color: #af9982; font-weight: 400; }
.art-hover-button { position: absolute; z-index: 1; top: 73px; left: 9px; background: #8b6acb; color: #fff; border: 1px solid #a98bdc; border-radius: 8px; padding: 14px 20px; font-size: 15px; font-weight: 500; transform: rotate(-8deg); box-shadow: 0 5px 0 #7755b5, 0 14px 21px #71578b15; animation: hero-hover 5s ease-in-out infinite; }
.art-hover-button .icon { position: absolute; bottom: -16px; right: -13px; width: 28px; height: 28px; fill: #fff; color: #514362; transform: rotate(8deg); filter: drop-shadow(0 3px 1px #bcaed430); }
.art-spark { position: absolute; color: #a994d1; }
.spark-one { font-size: 24px; top: 20px; left: 52px; }
.spark-two { font-size: 32px; top: 126px; right: 18px; }
.art-caption { position: absolute; left: 124px; bottom: 0; color: #ad9fc0; font-size: 7px; letter-spacing: .7px; display: flex; align-items: center; gap: 5px; }
.art-caption i { width: 3px; height: 3px; border-radius: 50%; background: #ad9fc0; }
@keyframes puffi-float { 0%, 100% { transform: translateY(3px) rotate(-5deg) scale(1); } 50% { transform: translateY(-5px) rotate(5deg) scale(1.06); } }
@keyframes hero-hover { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-6px) rotate(-5deg); } }
.benefits { display: flex; justify-content: space-around; gap: 15px; border-bottom: 1px solid var(--line); padding: 16px 0 17px; margin-bottom: 25px; }
.benefits > span { display: flex; align-items: center; gap: 6px; color: #888292; font-size: 10px; white-space: nowrap; }
.benefits .icon { width: 13px; height: 13px; color: #9d8cba; }
.library { scroll-margin-top: 15px; }
.library-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-eyebrow { font-size: 8px; letter-spacing: 1.4px; font-weight: 550; color: #9a90a5; margin-bottom: 7px; }
h2 { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: .3px; }
.library-heading h2 { display: flex; align-items: center; gap: 10px; }
#result-total { font-family: 'DM Sans', sans-serif; font-size: 10px; letter-spacing: 0; background: #efecf5; color: #9586b2; font-weight: 500; border: 1px solid #e9e3f2; padding: 3px 7px; border-radius: 5px; }
.library-heading p { margin: 9px 0 0; font-size: 11px; color: var(--muted); letter-spacing: .1px; }
.search-box { width: 270px; flex-shrink: 0; border: 1px solid #e6e6ed; border-radius: 7px; padding: 10px 10px 10px 12px; display: flex; align-items: center; gap: 8px; color: #aaa7b2; background: var(--surface); margin-top: 14px; box-shadow: 0 2px 4px #00000002; }
.search-box:focus-within { border-color: #ae95e5; box-shadow: 0 0 0 3px #b39ed212; }
.search-box .icon { width: 15px; height: 15px; }
.search-box input { min-width: 0; width: 100%; outline: 0; border: 0; padding: 0; background: none; color: var(--text); font-size: 10px; }
.search-box input::placeholder { color: #a8a5b0; }
.search-box kbd { font-family: inherit; font-size: 8px; border: 1px solid var(--line); padding: 2px 4px; border-radius: 4px; white-space: nowrap; background: var(--bg); color: #aaa6b2; }
.filter-bar { display: flex; justify-content: space-between; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.filter-tabs { display: flex; gap: 5px; flex-wrap: wrap; }
.filter-tab { display: flex; gap: 5px; align-items: center; font-size: 10px; color: #8b8797; padding: 7px 11px; border-radius: 6px; border: 1px solid transparent; white-space: nowrap; }
.filter-tab:hover { background: var(--primary-soft); color: var(--primary); }
.filter-tab.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-tab .icon { width: 12px; height: 12px; }
.sort-wrap { display: flex; align-items: center; flex-shrink: 0; gap: 10px; font-size: 9px; color: var(--muted); position: relative; }
.sort-wrap select { appearance: none; background: transparent; border: 0; font-size: 9px; color: var(--subtle); padding: 7px 22px 7px 0; cursor: pointer; }
.sort-wrap > .icon { position: absolute; right: 2px; width: 12px; height: 12px; pointer-events: none; color: var(--muted); }
.sort-wrap option { background: var(--surface); color: var(--text); }
.library-status { display: flex; align-items: center; justify-content: space-between; padding: 15px 0 13px; font-size: 9px; color: #a2a0ab; gap: 15px; }
.play-toggle { display: flex; align-items: center; gap: 5px; color: #96939e; font-size: 9px; padding: 1px 0 1px 8px; white-space: nowrap; }
.play-toggle:hover { color: var(--primary); }
.play-toggle .icon { width: 11px; height: 11px; }
.animation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; }
.animation-card { background: var(--surface); border: 1px solid #e8e8ed; border-radius: 10px; overflow: hidden; min-width: 0; transition: box-shadow .25s, border-color .25s, transform .25s; }
.animation-card:hover { border-color: #d4c8e9; box-shadow: 0 7px 23px #44305d08; transform: translateY(-2px); }
.card-preview { position: relative; height: 204px; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.demo-content { display: grid; place-items: center; width: 100%; height: 100%; }
.card-badges { position: absolute; top: 13px; left: 12px; z-index: 3; }
.badge { background: #ffffffd9; color: #88799e; font-size: 8px; display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; padding: 4px 6px; box-shadow: 0 1px 2px #00000002; }
.badge .icon { width: 10px; height: 10px; }
.badge-hot { color: #a1886c; }
.favorite-button { position: absolute; z-index: 3; top: 9px; right: 9px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 6px; color: #81818c; }
.favorite-button .icon { width: 14px; height: 14px; stroke-width: 1.4; }
.favorite-button:hover { background: #ffffffaa; color: var(--primary); }
.favorite-button.saved { background: #ffffffb3; color: var(--primary); }
.saved .icon { fill: #9c80dd38; }
.preview-hint { position: absolute; left: 12px; bottom: 11px; display: flex; gap: 4px; align-items: center; font-size: 8px; color: #787881; opacity: .75; z-index: 2; pointer-events: none; }
.preview-hint .icon { width: 9px; height: 9px; }
.replay-button { position: absolute; bottom: 7px; right: 7px; width: 27px; height: 27px; border-radius: 5px; color: #89838f; display: grid; place-items: center; z-index: 3; opacity: .8; }
.replay-button .icon { width: 12px; height: 12px; }
.replay-button:hover { background: #ffffff85; opacity: 1; }
.animation-card[data-id="aurora"] .favorite-button, .animation-card[data-id="grid-drift"] .favorite-button, .animation-card[data-id="aurora"] .preview-hint, .animation-card[data-id="grid-drift"] .preview-hint, .animation-card[data-id="aurora"] .replay-button, .animation-card[data-id="grid-drift"] .replay-button { color: #d6d1e4; }
.card-details { padding: 16px 16px 13px; }
.card-title-row { display: flex; justify-content: space-between; align-items: center; }
.card-title { text-align: left; padding: 0; }
.card-title:hover h3 { color: var(--primary); }
.card-title h3 { font-size: 14px; font-weight: 550; letter-spacing: .3px; margin: 0 0 4px; transition: color .2s; }
.card-title > span { font-size: 10px; color: #a09aa8; font-family: 'DM Sans', sans-serif; letter-spacing: .1px; }
.quick-copy { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 6px; color: #9a94a5; }
.quick-copy .icon { width: 13px; height: 13px; }
.quick-copy:hover { border-color: #c2aee8; color: var(--primary); background: var(--primary-soft); }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tags > span { font-size: 9px; color: #91869f; background: #f6f5f8; border-radius: 3px; padding: 3px 5px; }
.code-link { display: inline-flex; gap: 4px; align-items: center; font-size: 9px; color: #887798; padding: 3px 0 3px 4px; white-space: nowrap; }
.code-link .icon { width: 11px; height: 11px; }
.code-link .code-arrow { width: 10px; height: 10px; margin-left: 2px; }
.code-link:hover { color: var(--primary); }
.is-paused *, .is-paused *::before, .is-paused *::after, .offscreen *, .offscreen *::before, .offscreen *::after { animation-play-state: paused !important; }
.collection-end { display: flex; flex-direction: column; align-items: center; padding: 42px 0 36px; text-align: center; }
.collection-mascot .logo-mark { display: block; width: 44px; height: 44px; }
.collection-end p { color: #98929f; font-size: 10px; margin: 8px 0; letter-spacing: 1px; }
.collection-end > span:last-child { color: #b5b0bd; font-size: 6px; letter-spacing: 1.4px; }
.main-footer { padding: 20px 0 25px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; letter-spacing: -.7px; color: #918698; }
.footer-brand .logo-mark { width: 27px; height: 27px; }
.main-footer > span { color: #afabb5; font-size: 9px; }
.main-footer > button { margin-left: auto; color: #98919f; font-size: 9px; display: flex; gap: 6px; align-items: center; }
.main-footer > button .icon { width: 12px; height: 12px; }
.developer-info { flex-basis: 100%; min-width: 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 17px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.8; }
.developer-credit, .developer-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.developer-label { color: var(--muted); font-size: 10px; }
.developer-credit strong { color: var(--subtle); font-weight: 500; }
.developer-english { color: var(--subtle); }
.developer-info a { display: inline-flex; align-items: center; gap: 3px; color: var(--primary); overflow-wrap: anywhere; }
.developer-info a:hover { text-decoration: underline; text-underline-offset: 3px; }
.developer-info .icon { width: 12px; height: 12px; }
.empty-state { grid-column: 1 / -1; padding: 70px 15px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }
.empty-state > .icon { width: 30px; height: 30px; color: #b7a4d9; margin-bottom: 9px; }
.empty-state h3 { font-size: 17px; font-weight: 500; margin-bottom: 5px; }
.empty-state p { color: var(--muted); font-size: 11px; line-height: 1.8; margin-bottom: 20px; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); padding: 10px 14px; font-size: 11px; color: var(--subtle); }
.secondary-button:hover { background: var(--primary-soft); color: var(--primary); border-color: #cfc1e6; }
.secondary-button .icon { width: 15px; height: 15px; }
.dialog-open { overflow: hidden; }
dialog { padding: 0; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 16px; box-shadow: 0 30px 120px #1f16283b; }
dialog::backdrop { background: #29223866; backdrop-filter: blur(5px); }
dialog[open] { animation: dialog-in .2s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
#editor { width: min(970px, calc(100vw - 48px)); max-height: calc(100dvh - 60px); }
.editor-header { padding: 23px 27px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.editor-header .section-eyebrow { display: block; }
.editor-header h2 { font-size: 20px; }
.editor-header h2 span { font-size: 10px; color: var(--muted); font-weight: 400; margin-left: 13px; }
.editor-body { display: grid; grid-template-columns: 45% 55%; }
.editor-controls { padding: 0 25px 22px; border-right: 1px solid var(--line); }
.editor-preview-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 6px; }
.editor-preview-toolbar > span { display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--muted); }
.editor-preview-toolbar > span i { width: 5px; height: 5px; border-radius: 50%; background: #85ad90; }
.editor-preview-toolbar > div { display: flex; gap: 3px; }
.editor-preview-toolbar .icon { width: 13px; height: 13px; }
#editor .editor-controls #editor-preview { min-height: 195px; border-radius: 10px; isolation: isolate; }
.editor-description { font-size: 10px; color: var(--muted); line-height: 1.85; margin: 12px 0 14px; }
.controls-title { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; border-top: 1px solid var(--line); padding-top: 13px; margin-bottom: 14px; }
.controls-title .icon { width: 15px; height: 15px; color: #a095af; }
.controls-title button { margin-left: auto; font-size: 10px; font-weight: 400; color: #a392bf; }
.controls-title button:hover { color: var(--primary); }
.settings-grid { display: flex; flex-direction: column; }
.range-label { display: flex; justify-content: space-between; align-items: center; font-size: 10px; margin-bottom: 10px; color: var(--subtle); }
.range-label output { font-family: 'DM Sans', sans-serif; color: var(--primary); background: var(--primary-soft); padding: 2px 6px; border-radius: 3px; min-width: 38px; text-align: center; font-size: 10px; }
input[type="range"] { width: 100%; margin: 0; accent-color: var(--primary); height: 5px; cursor: pointer; }
.range-extents { display: flex; justify-content: space-between; margin: 8px 0 15px; font-size: 8px; color: #aba5b2; }
#delay { margin-bottom: 22px; }
#easing { border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; background: var(--bg); font-size: 10px; color: var(--subtle); width: 100%; }
.settings-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 18px; }
.color-label { display: flex; align-items: center; gap: 10px; font-size: 10px; color: var(--subtle); }
.color-label > span { display: flex; gap: 5px; align-items: center; border: 1px solid var(--line); border-radius: 5px; padding: 4px 5px; font-size: 9px; }
input[type="color"] { appearance: none; padding: 0; border: 0; background: none; width: 18px; height: 18px; cursor: pointer; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 3px; }
.switch-label { position: relative; display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--subtle); cursor: pointer; }
.switch-label input { position: absolute; right: 0; width: 30px; height: 19px; margin: 0; opacity: 0; cursor: pointer; }
.switch { display: block; width: 30px; height: 17px; border-radius: 20px; background: #d9d5df; pointer-events: none; }
.switch::after { content: ''; position: relative; display: block; top: 3px; left: 3px; height: 11px; width: 11px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch-label input:checked + .switch { background: var(--primary); }
.switch-label input:checked + .switch::after { transform: translateX(13px); }
.switch-label input:focus-visible + .switch { outline: 2px solid var(--primary); outline-offset: 4px; }
.control-note { font-size: 9px; color: var(--muted); margin-top: 6px; }
.editor-code { padding: 22px 25px; min-width: 0; display: flex; flex-direction: column; }
.code-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.code-panel-header > span:first-child { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; }
.code-panel-header .icon { color: #a695b6; width: 16px; height: 16px; }
.dependency-badge { font-size: 8px; color: #8aab8e; background: #eff6f0; border-radius: 4px; padding: 3px 6px; }
.code-tabs { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 4px; margin-bottom: 17px; }
.code-tabs button { flex: 1; font-size: 10px; color: var(--muted); padding: 8px 6px; border-radius: 4px; }
.code-tabs button.active { color: var(--primary); background: var(--surface); box-shadow: 0 1px 4px #40305212; }
.code-tabs button:hover { color: var(--primary); }
.code-filename { display: flex; align-items: center; justify-content: space-between; background: #242332; border-radius: 8px 8px 0 0; border: 1px solid #383345; border-bottom: 0; padding: 10px 14px; color: #a8a0b9; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.small-copy { display: inline-flex; align-items: center; gap: 5px; font: 9px 'Noto Sans TC', sans-serif; color: #b5a9c7; }
.small-copy .icon { width: 11px; height: 11px; }
.small-copy:hover { color: #fff; }
#code-panel { margin: 0; padding: 17px; background: #201e2b; color: #b7b0c9; border: 1px solid #383345; border-radius: 0 0 8px 8px; height: 330px; flex: 1; min-height: 230px; max-height: 360px; overflow: auto; font: 10px/1.85 ui-monospace, SFMono-Regular, Menlo, monospace; tab-size: 2; scrollbar-color: #4b415c #201e2b; }
#generated-code { font: inherit; }
.syntax-tag { color: #c295cf; }
.syntax-string { color: #afc6a0; }
.syntax-property { color: #b4a2d4; }
.syntax-comment { color: #726a81; }
.code-help { margin: 12px 0 17px; font-size: 9px; line-height: 1.85; color: var(--muted); min-height: 32px; }
.code-panel-footer { display: flex; gap: 10px; margin-top: auto; }
.code-panel-footer .primary-button { flex: 1; }
.accessibility-note { display: flex; justify-content: center; align-items: center; gap: 5px; color: #a59aac; font-size: 8px; margin: 12px 0 0; }
.accessibility-note .icon { width: 10px; height: 10px; }
#guide { width: min(610px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 29px; }
.guide-header { display: flex; justify-content: space-between; align-items: flex-start; }
.guide-header .logo-mark { display: block; width: 44px; height: 44px; margin-bottom: 23px; }
.guide-header .section-eyebrow { display: block; font-size: 8px; }
.guide-header h2 { font-size: 24px; }
.guide-intro { font-size: 11px; color: var(--muted); line-height: 1.9; margin: 13px 0 29px; }
.guide-steps { display: grid; gap: 23px; }
.guide-steps > div { display: flex; gap: 18px; }
.guide-steps > div > span { width: 34px; height: 34px; border: 1px solid #e9e0f4; background: var(--primary-soft); color: var(--primary); font: 500 12px 'DM Sans', sans-serif; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.guide-steps h3 { font-size: 13px; margin: 0 0 7px; font-weight: 550; }
.guide-steps p { font-size: 10px; line-height: 1.9; margin: 0; color: var(--muted); }
.guide-note { display: flex; gap: 11px; margin: 26px 0 21px; padding: 15px; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; }
.guide-note .icon { width: 15px; height: 15px; color: #a695b5; }
.guide-note strong { font-size: 11px; font-weight: 500; }
.guide-note p { font-size: 9px; color: var(--muted); line-height: 1.9; margin-bottom: 0; }
.guide-start { width: 100%; }
#toast { position: fixed; bottom: 28px; left: calc(50% + var(--sidebar) / 2); z-index: 100; transform: translate(-50%, 15px); opacity: 0; pointer-events: none; background: #332d42; color: #f4edf9; border: 1px solid #ffffff15; box-shadow: 0 8px 30px #302b4526; border-radius: 9px; padding: 13px 19px; display: flex; gap: 9px; align-items: center; font-size: 11px; transition: opacity .2s, transform .2s; white-space: nowrap; max-width: calc(100vw - 30px); }
#toast .icon { width: 15px; height: 15px; color: #bca4e4; }
#toast.visible { transform: translate(-50%, 0); opacity: 1; }
.sidebar-overlay { display: none; }

[data-theme="dark"] { --bg: #1e1d24; --surface: #24232b; --text: #e7e2ec; --muted: #9d96a9; --subtle: #bab2c7; --line: #35313e; --primary: #a78be8; --primary-soft: #393043; }
[data-theme="dark"] .hero { background: #302b3d; border-color: #443754; }
[data-theme="dark"] .hero::before { opacity: .13; }
[data-theme="dark"] .hero-copy > p { color: #aca0bd; }
[data-theme="dark"] .hero-actions > span { color: #9588a5; }
[data-theme="dark"] .hero-art { opacity: .88; }
[data-theme="dark"] .sidebar-note { background: #2e283a; border-color: #3b304d; }
[data-theme="dark"] .nav-item.active small { background: #4a3d5d; }
[data-theme="dark"] .search-box, [data-theme="dark"] .animation-card { border-color: var(--line); }
[data-theme="dark"] .tags > span { background: #302b37; color: #a49ab4; }
[data-theme="dark"] #result-total { background: #3a3148; border-color: #4b3b62; color: #b49fd3; }
[data-theme="dark"] .primary-button, [data-theme="dark"] .filter-tab.selected { background: #8463bd; color: #fff; }
[data-theme="dark"] .primary-button:hover { background: #9873d5; }
[data-theme="dark"] .dependency-badge { background: #2c3b30; color: #adc1b0; }
[data-theme="dark"] .card-preview { filter: brightness(.88); }

@media (min-width: 1500px) { :root { --sidebar: 246px; } main { padding: 40px 52px 0; } .topbar { padding: 0 52px; } .hero { padding: 36px 42px; min-height: 320px; } h1 { font-size: 48px; } .hero-art { margin-right: 30px; } .hero-underline { width: 181px; } .card-preview { height: 238px; } .hero-copy > p { font-size: 13px; } .hero-actions > span { font-size: 10px; } .animation-grid { gap: 25px; } .card-title h3 { font-size: 14px; } .card-title > span { font-size: 10px; } .card-details { padding: 18px; } .card-bottom { margin-top: 17px; } .tags > span, .code-link { font-size: 9px; } }
@media (max-width: 1250px) { :root { --sidebar: 216px; } main { padding: 26px 29px 0; } .topbar { padding: 0 29px; } .hero { padding: 30px; } h1 { font-size: 36px; letter-spacing: 0; } .hero-art { transform: scale(.91); transform-origin: right center; width: 315px; margin-right: -10px; } .hero-actions > span { font-size: 8px; } .filter-tab { padding: 7px 8px; font-size: 9px; } .filter-tabs { gap: 2px; } .animation-grid { gap: 16px; } .card-preview { height: 185px; } .demo-content { transform: scale(.9); } .demo-content:has(.mk-aurora, .mk-mesh, .mk-grid-drift) { transform: none; } .card-details { padding: 14px 12px 12px; } .code-arrow { display: none; } .search-box { width: 245px; } .brand { font-size: 24px; margin-left: 6px; } .workspace-label { gap: 7px; } }
@media (max-width: 1080px) { :root { --sidebar: 195px; } .sidebar { padding-left: 12px; padding-right: 12px; } .workspace-label { padding: 9px; } .workspace-label small { font-size: 7px; } .version { display: none; } .nav-label span { font-size: 6px; } .hero { min-height: 288px; padding: 27px; } h1 { font-size: 34px; line-height: 1.45; } h1 br { display: block; } .hero-underline { width: 135px; left: 0; } .hero-copy > p { margin: 14px 0 18px; font-size: 10px; } .hero-actions > span { display: none; } .hero-art { width: 290px; transform: scale(.88); margin-right: -24px; } .eyebrow { font-size: 6px; letter-spacing: .8px; } .benefits { gap: 12px; flex-wrap: wrap; justify-content: flex-start; } .benefits > span { font-size: 8px; } .library-heading h2 { font-size: 19px; } .search-box { width: 217px; } .filter-tab { padding: 6px; font-size: 9px; } .sort-wrap { gap: 5px; } .sort-wrap label { display: none; } .card-preview { height: 173px; } .demo-content { transform: scale(.8); } .code-link > span { display: none; } .code-link .icon { width: 13px; height: 13px; } .code-link { padding: 4px; } }
@media (max-width: 900px) { :root { --sidebar: 185px; } main { padding: 22px 24px 0; } .topbar { padding: 0 24px; height: 64px; } .hero-art { width: 230px; transform: scale(.75); margin-left: -30px; margin-right: 9px; } .hero { padding: 24px; min-height: 290px; } .hero-copy { min-width: 210px; } .hero-copy > p { font-size: 9px; } .hero-actions { margin-top: 22px; } .eyebrow { font-size: 5px; letter-spacing: .6px; } .library-heading { flex-wrap: wrap; gap: 16px; } .search-box { width: 100%; margin-top: 0; } .filter-bar { align-items: flex-start; } .filter-tabs { gap: 3px; } .filter-tab { padding: 6px 7px; } .animation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card-preview { height: 191px; } .demo-content { transform: scale(.88); } .code-link > span { display: inline; } .free-note { display: none; } .nav-item { font-size: 11px; gap: 10px; padding: 10px; } .brand { font-size: 21px; margin-left: 6px; gap: 5px; } .brand .logo-mark { width: 34px; height: 34px; } .sidebar-note { padding: 13px; } .nav-label { margin-left: 10px; gap: 6px; } .nav-label span { font-size: 5px; } .workspace-label small { font-size: 6px; } .editor-body { grid-template-columns: 46% 54%; } .editor-controls, .editor-code { padding-left: 18px; padding-right: 18px; } .settings-bottom { flex-wrap: wrap; gap: 15px; } .editor-header h2 span { display: block; margin: 6px 0 0; } }
@media (max-width: 700px) { :root { --sidebar: 220px; } .sidebar { transform: translateX(-100%); transition: transform .25s; padding: 25px 17px 14px; z-index: 40; } .page { margin-left: 0; } .mobile-menu { display: inline-flex; margin-left: -6px; } .breadcrumb { gap: 10px; } .topbar { height: 60px; padding: 0 21px; } .topbar-right { gap: 10px; } .guide-link { padding: 6px 9px; font-size: 9px; } main { padding: 20px 21px 0; } .menu-open .sidebar { transform: translateX(0); } .menu-open .sidebar-overlay { display: block; position: fixed; inset: 0; background: #28213166; backdrop-filter: blur(2px); z-index: 35; } .menu-open { overflow: hidden; } .sidebar-bottom { padding-top: 25px; } .nav-label span { font-size: 7px; } .workspace-label small { font-size: 8px; } .hero { padding: 24px; min-height: 278px; } .hero-art { width: 235px; transform: scale(.8); margin-left: -18px; } .hero-copy { min-width: 210px; } h1 { font-size: 34px; margin-top: 15px; } .eyebrow { font-size: 5px; } .hero-copy > p { font-size: 9px; } .hero-actions { margin-top: 19px; } .benefits { margin-bottom: 27px; padding: 16px 2px; gap: 13px 20px; } .benefits > span { font-size: 8px; width: calc(50% - 10px); } .library-heading { gap: 20px; margin-bottom: 19px; } .library-heading h2 { font-size: 22px; } .library-heading p { font-size: 10px; } .search-box { padding: 12px; } .search-box input { font-size: 11px; } .section-eyebrow { font-size: 7px; } .filter-bar { gap: 10px; } .filter-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 4px; padding-bottom: 2px; } .filter-tab { font-size: 10px; padding: 7px 10px; } .sort-wrap { padding-top: 2px; } .sort-wrap select { font-size: 9px; } .animation-grid { gap: 17px; } .card-preview { height: 199px; } .demo-content { transform: scale(.85); } .card-title h3 { font-size: 12px; } .card-title > span { font-size: 9px; } .card-details { padding: 15px 13px 13px; } .main-footer > span { font-size: 8px; } .main-footer { gap: 12px; } #toast { left: 50%; font-size: 10px; white-space: normal; width: max-content; } #editor { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); } .editor-header { padding: 19px 21px; } .editor-body { grid-template-columns: 1fr; } .editor-controls { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 21px 24px; } .editor-code { padding: 23px 21px; } #editor-preview { min-height: 235px; } #code-panel { height: 300px; flex: none; min-height: 0; font-size: 10px; } .settings-bottom { flex-wrap: nowrap; } .editor-description { font-size: 11px; } .code-help { font-size: 10px; } .range-label, .color-label, .switch-label { font-size: 11px; } }
@media (max-width: 460px) { main { padding: 17px 16px 0; } .topbar { padding: 0 16px; } .hero { min-height: 303px; padding: 24px 21px; } .hero-copy { min-width: 0; } h1 { font-size: 37px; line-height: 1.4; margin-top: 18px; } .hero-underline { width: 146px; } .hero-art { position: absolute; right: -10px; top: 28px; width: 240px; height: 260px; transform: scale(.63); transform-origin: right top; opacity: .75; pointer-events: none; } .art-code-card { top: 177px; left: 65px; width: 210px; } .art-hover-button { left: 59px; top: 80px; font-size: 13px; padding: 12px 17px; } .art-motion-card { left: 142px; top: 29px; } .spark-one { left: 120px; top: -7px; } .art-caption { display: none; } .hero-copy > p { font-size: 10px; line-height: 2; margin: 20px 0 0; } .hero-actions { margin-top: 21px; } .hero-actions .primary-button { padding: 10px 15px; font-size: 10px; } .eyebrow { font-size: 5px; letter-spacing: .6px; } .benefits { gap: 12px 10px; margin-bottom: 25px; } .benefits > span { width: calc(50% - 5px); font-size: 7px; gap: 5px; } .benefits .icon { width: 12px; height: 12px; } .library-heading h2 { font-size: 21px; } .library-heading p { font-size: 9px; } .filter-bar { padding-bottom: 12px; } .filter-tab { font-size: 9px; padding: 7px 9px; } .sort-wrap { display: none; } .library-status { font-size: 8px; padding: 14px 0 12px; } .play-toggle { font-size: 8px; } .animation-grid { gap: 12px; } .card-preview { height: 170px; } .demo-content { transform: scale(.68); } .mk-aurora span { font-size: 16px; } .mk-mesh span { font-size: 17px; } .mk-grid-drift span { font-size: 11px; } .card-details { padding: 12px 10px 10px; } .card-title h3 { font-size: 12px; letter-spacing: 0; } .card-title > span { font-size: 9px; } .quick-copy { width: 23px; height: 23px; border-radius: 5px; } .quick-copy .icon { width: 11px; height: 11px; } .card-bottom { margin-top: 12px; } .tags { gap: 3px; } .tags > span { font-size: 8px; padding: 3px 4px; } .code-link > span { display: none; } .code-link .icon { width: 12px; height: 12px; } .badge { font-size: 6px; padding: 3px 4px; } .badge .icon { width: 8px; height: 8px; } .card-badges { top: 9px; left: 9px; } .favorite-button { top: 5px; right: 5px; width: 26px; height: 26px; } .favorite-button .icon { width: 12px; height: 12px; } .preview-hint { font-size: 6px; left: 9px; bottom: 9px; gap: 3px; } .preview-hint .icon { width: 8px; height: 8px; } .replay-button { right: 4px; bottom: 3px; width: 26px; height: 26px; } .replay-button .icon { width: 10px; height: 10px; } .main-footer > span { display: none; } .main-footer { padding-bottom: 24px; } .collection-end { padding: 31px 0; } #guide { padding: 24px; } .guide-header h2 { font-size: 21px; } .guide-steps { gap: 22px; } .guide-steps > div { gap: 13px; } .guide-intro { font-size: 10px; } }
@media (max-width: 350px) { .animation-grid { grid-template-columns: 1fr; } .card-preview { height: 210px; } .demo-content { transform: scale(.95); } .card-title h3 { font-size: 13px; } .card-title > span { font-size: 9px; } .tags > span { font-size: 9px; } .code-link > span { display: inline; } .card-details { padding: 15px; } .hero-art { opacity: .4; right: -25px; } h1 { font-size: 32px; } .hero-underline { width: 128px; } .breadcrumb-home, .breadcrumb-slash { display: none; } }
/* Translated copy can wrap without displacing the language selector. */
html:lang(ja) { font-family: 'DM Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif; }
.topbar { gap: 16px; }
.breadcrumb { min-width: 0; }
.breadcrumb strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { flex-shrink: 0; gap: 14px; }
.workspace-symbol { flex-shrink: 0; }
.workspace-label > div { min-width: 0; }
.workspace-label small { white-space: normal; }
.hero-copy { min-width: 0; }
.hero h1 br { display: block; }
.hero h1 { max-width: 100%; }
.hero-underline { left: 0; right: auto; }
.hero-actions { flex-wrap: wrap; }
.eyebrow { white-space: normal; }
.library-heading > div, .card-title, .editor-header > div { min-width: 0; }
.library-heading h2 { line-height: 1.4; }
.card-title h3, .card-title > span { overflow-wrap: anywhere; }
.editor-header .close-dialog { flex-shrink: 0; }
.editor-preview-toolbar > span { min-width: 0; }
.code-panel-header { gap: 10px; }
.dependency-badge { flex-shrink: 0; }
@media (max-width: 1250px) { .language-label, .topbar .free-note { display: none; } }
@media (max-width: 700px) {
  .breadcrumb-home, .breadcrumb-slash { display: none; }
  .topbar-right { gap: 8px; }
  .language-control { gap: 0; }
  #language-select { min-height: 36px; font-size: 11px; }
  .library-status { gap: 12px; align-items: flex-start; }
  .play-toggle { flex-shrink: 0; }
  .settings-bottom { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 460px) {
  .topbar .guide-link { display: none; }
  .topbar { gap: 10px; }
  .hero-art { opacity: .3; }
  h1 { font-size: 32px; }
  .hero-copy > p { max-width: 250px; }
  .card-title h3 { line-height: 1.45; }
  .card-title > span { line-height: 1.5; }
  .editor-header h2 { font-size: 18px; }
}
@media (max-width: 350px) { h1 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
