@charset "UTF-8";

/* Layering through solid surfaces, shadow and imagery; no decorative hairlines.
   --accent is themed per project and animated by the home showcase. */
@property --accent { syntax: '<color>'; inherits: true; initial-value: #d42a42; }

:root {
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bg: #131016;
  --bg-tint: #18141c;
  --surface: #201a26;
  --surface-2: #2a2231;
  --surface-3: #352b3d;
  --text: #f1eae6;
  --text-2: #c2b6bd;
  --text-3: #8f8490;
  --red: #d42a42;
  --accent: var(--red);
  --accent-soft: color-mix(in srgb, var(--accent) 22%, transparent);
  --accent-text: color-mix(in srgb, var(--accent) 45%, #fff);
  --radius: 6px;
  --radius-sm: 4px;
  --r-ui: 3px;
  --cut: 8px;
  /* Game-UI bevel: lit top edge, heavy bottom edge. */
  --bevel: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -3px 0 rgba(0, 0, 0, .28);
  --shadow: 0 4px 0 rgba(0, 0, 0, .32), 0 18px 36px -20px rgba(0, 0, 0, .8);
  --container: 1200px;
  --header: 72px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; min-width: 320px; line-height: 1.7; transition: --accent .8s ease; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--red); color: #fff; }
.skip-link:focus { top: 12px; }
.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon.is-flipped { transform: scaleX(-1); }
.container { --gutter: clamp(20px, 4vw, 48px); width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { --container: 760px; }
.container-wide { --container: 1000px; }
.spacer { height: 56px; }
.only-mobile { display: none !important; }

/* ---------- Buttons, badges, tags ---------- */
.button { --cut: 9px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border: 0; border-radius: 0; font-size: 15px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); box-shadow: var(--bevel); transition: background-color .15s, transform .1s, filter .15s; }
.button .icon { width: 17px; height: 17px; }
.button:hover { filter: brightness(1.12); }
.button:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(0, 0, 0, .25); }
.button:disabled { opacity: .5; filter: none; transform: none; }
.button-primary { color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff) 0%, var(--accent) 45%, color-mix(in srgb, var(--accent) 78%, #000) 100%); text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.button-glass { color: #fff; background: rgba(20, 15, 24, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.button-glass:hover { background: rgba(40, 31, 46, .78); }
.button-soft { color: var(--text); background: linear-gradient(180deg, #3d3246, var(--surface-3)); }
.button-small { --cut: 6px; height: 36px; padding: 0 14px; font-size: 13px; }
.round-button { --cut: 6px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; color: #fff; background: rgba(20, 15, 24, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); box-shadow: var(--bevel); transition: background-color .2s; }
.round-button:hover { background: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: var(--r-ui); font-size: 12px; font-weight: 600; color: #fff; background: rgba(15, 11, 16, .74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; }
.badge .icon { width: 12px; height: 12px; }
.badge.is-live { background: var(--accent); }
.badge.is-inline { color: var(--text-2); background: var(--surface-3); backdrop-filter: none; }
.badge.is-accent { color: var(--accent-text); background: var(--accent-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 3px 12px; border-radius: var(--r-ui); font-size: 13px; color: var(--text-2); background: var(--surface-3); }
.tag.is-glass { color: #fff; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-3); }
.avatar.is-letter { display: inline-grid; place-items: center; font-family: var(--serif); font-weight: 900; color: #fff; background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #000)); }
.avatar.is-large { width: 56px; height: 56px; font-size: 22px; }
.avatar.is-xl { width: 112px; height: 112px; font-size: 44px; }
.author-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: var(--r-ui); font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .1); transition: background-color .2s; }
.author-chip:hover { background: rgba(255, 255, 255, .18); }

/* ---------- Header & footer ---------- */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header); background: linear-gradient(180deg, #1d1723, #151118); box-shadow: 0 6px 0 rgba(0, 0, 0, .25), 0 14px 30px -14px rgba(0, 0, 0, .8); transition: background .3s; }
.site-header.is-overlay { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(10, 8, 12, .72), rgba(10, 8, 12, 0)); box-shadow: none; }
.site-header.is-scrolled, .site-header.is-open { background: linear-gradient(180deg, rgba(29, 23, 35, .96), rgba(21, 17, 24, .96)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 0 rgba(0, 0, 0, .25), 0 14px 30px -14px rgba(0, 0, 0, .8); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-family: var(--serif); font-size: 20px; font-weight: 900; letter-spacing: .06em; }
.site-header .brand { height: 44px; padding: 0 16px 0 8px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3); clip-path: polygon(0 0, 100% 0, 100% 70%, calc(100% - 12px) 100%, 0 100%); }
.brand-mark { width: 28px; height: 28px; color: var(--accent); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 60%, transparent)); transition: color .8s; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px 0 11px; font-size: 14px; font-weight: 600; color: var(--text-2); clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); transition: color .15s, background-color .15s; }
.nav-link .icon { width: 16px; height: 16px; opacity: .8; }
.nav-link kbd { display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 2px; font-family: var(--mono); font-size: 10px; color: var(--text-3); background: rgba(255, 255, 255, .07); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .4); }
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.nav-link[aria-current="page"] { color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 85%, #fff), var(--accent) 50%, color-mix(in srgb, var(--accent) 75%, #000)); box-shadow: var(--bevel); }
.nav-link[aria-current="page"] kbd { color: #fff; background: rgba(0, 0, 0, .25); }
.hud-counters { display: flex; gap: 4px; flex-shrink: 0; }
.hud-counter { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 6px; border-radius: var(--r-ui); font-size: 13px; color: var(--text-2); background: rgba(0, 0, 0, .3); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3); }
.hud-counter .icon { width: 20px; height: 20px; padding: 3px; border-radius: 2px; color: #fff; background: color-mix(in srgb, var(--accent) 70%, #000); }
.hud-counter strong { font-family: var(--mono); font-size: 14px; color: var(--text); }
.hud-counter:hover { color: var(--text); background: rgba(0, 0, 0, .45); }
.menu-button { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-ui); background: rgba(0, 0, 0, .3); place-content: center; gap: 5px; }
.menu-button span { display: block; width: 18px; height: 2px; background: #fff; transition: transform .25s; }
.site-header.is-open .menu-button span:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-header.is-open .menu-button span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.site-footer { margin-top: 40px; padding-top: 48px; background: linear-gradient(180deg, transparent, #0d0a0f 60px); }
.footer-panel { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 0 rgba(0, 0, 0, .3); }
.footer-archive, .footer-contact { padding: 28px 30px; background: linear-gradient(180deg, #1f1925, #18131c); box-shadow: var(--bevel); }
.footer-archive p { margin-top: 12px; max-width: 520px; font-size: 14px; color: var(--text-3); }
.archive-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.archive-stats div { padding: 10px 14px; border-radius: var(--r-ui); background: rgba(0, 0, 0, .3); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3); }
.archive-stats dt { font-size: 12px; color: var(--text-3); }
.archive-stats dd { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--accent-text); }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); }
.footer-contact h2 { margin-bottom: 4px; font-family: var(--serif); font-size: 18px; color: var(--text); }
.footer-contact > a:not(.button), .footer-contact > span { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact > a:not(.button):hover { color: var(--text); }
.footer-contact .button { margin-top: 4px; }
.quick-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 16px 0 24px; }
.slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: var(--r-ui); font-size: 13px; color: var(--text-2); background: linear-gradient(180deg, #221b28, #19141d); box-shadow: var(--bevel); transition: color .15s, transform .15s; }
.slot .icon { width: 22px; height: 22px; color: var(--accent-text); }
.slot kbd { position: absolute; top: 5px; left: 6px; font-family: var(--mono); font-size: 10px; color: var(--text-3); }
.slot:hover { color: #fff; transform: translateY(-2px); }
.status-line { background: #08060a; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .5); }
.status-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; min-height: 40px; padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.status-item { display: inline-flex; align-items: center; gap: 8px; }
.status-item.is-grow { flex: 1; justify-content: center; font-family: var(--sans); }
a.status-item:hover { color: var(--text); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .4; } }

/* ---------- Home showcase (theme carousel with layered parallax) ---------- */
.showcase { position: relative; height: max(640px, min(100svh, 940px)); overflow: hidden; isolation: isolate; background: #0b090d; }
.showcase-slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; visibility: hidden; opacity: 0; transition: opacity .9s ease, visibility 0s .9s; }
.slide.is-active { visibility: visible; opacity: 1; transition: opacity .9s ease; z-index: 1; }
.slide-layer { --dist: 10%; transform: translate3d(calc(var(--enter, 1) * var(--dist)), 0, 0); transition: transform 1.15s cubic-bezier(.2, .75, .15, 1), opacity .9s ease; will-change: transform; }
.slide.is-active .slide-layer { transform: translate3d(0, 0, 0); }
.slide.is-leaving .slide-layer { transform: translate3d(calc(var(--leave, -1) * var(--dist)), 0, 0); }
.slide.is-prep .slide-layer, .slide.is-prep { transition: none !important; }
.layer-bg { --dist: 6%; position: absolute; inset: -4% -8%; }
.layer-char { --dist: 34%; position: absolute; right: 4%; bottom: 0; width: min(46vw, 760px); height: 82%; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.layer-text { --dist: 22%; }
.slide.is-active .layer-char { transition-duration: 1.35s; }
.slide.is-active .layer-text { transition-delay: .08s; }
.parallax { width: 100%; height: 100%; will-change: transform; transition: transform .2s linear; }
.layer-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.layer-char .parallax { display: flex; align-items: flex-end; justify-content: center; }
.layer-char img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.slide-shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(12, 9, 14, .92) 0%, rgba(12, 9, 14, .65) 32%, rgba(12, 9, 14, 0) 62%),
  linear-gradient(0deg, var(--bg) 0%, rgba(19, 16, 22, .5) 18%, rgba(19, 16, 22, 0) 42%),
  linear-gradient(180deg, rgba(12, 9, 14, .55) 0%, rgba(12, 9, 14, 0) 20%),
  radial-gradient(ellipse 60% 70% at 75% 60%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); }
.slide-content { position: relative; z-index: 2; padding-top: var(--header); padding-bottom: 150px; }
.layer-text { max-width: 600px; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: var(--r-ui); font-size: 13px; font-weight: 600; color: #fff; background: color-mix(in srgb, var(--accent) 38%, rgba(20, 14, 22, .5)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-title { margin-top: 20px; font-family: var(--serif); font-size: clamp(52px, 7.4vw, 108px); font-weight: 900; line-height: 1.06; letter-spacing: .04em; text-shadow: 0 6px 40px rgba(0, 0, 0, .65); }
.hero-title.is-project { margin-top: 12px; font-size: clamp(40px, 5.6vw, 76px); }
.hero-lead { margin-top: 16px; max-width: 580px; font-family: var(--serif); font-size: clamp(19px, 1.9vw, 25px); font-weight: 700; line-height: 1.6; color: #f6ece8; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.hero-text { margin-top: 10px; max-width: 520px; font-size: 16px; color: var(--text-2); text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.slide-credit { margin-top: 22px; font-size: 13px; color: var(--text-3); }
.showcase-fx { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.showcase-nav { position: absolute; left: 0; right: 0; bottom: 32px; z-index: 4; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.theme-tabs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; }
.theme-tabs::-webkit-scrollbar { display: none; }
.theme-tab { position: relative; display: flex; align-items: center; gap: 10px; flex-shrink: 0; height: 56px; padding: 6px 16px 6px 6px; border: 0; border-radius: var(--r-ui); color: var(--text-2); background: rgba(24, 19, 28, .66); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; transition: background-color .3s, color .3s, transform .3s; }
.theme-tab:hover { color: #fff; transform: translateY(-2px); }
.theme-tab[aria-selected="true"] { color: #fff; background: color-mix(in srgb, var(--accent) 32%, rgba(24, 19, 28, .8)); }
.theme-thumb { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 2px; overflow: hidden; background: var(--surface-3); }
.theme-thumb img { width: 100%; height: 100%; object-fit: cover; }
.theme-thumb.is-brand { color: var(--red); }
.theme-thumb.is-brand .icon { width: 26px; height: 26px; }
.theme-name { font-size: 14px; font-weight: 600; white-space: nowrap; }
.theme-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.theme-progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.theme-tab[aria-selected="true"] .theme-progress i { animation: progress var(--duration, 7s) linear forwards; }
.showcase.is-paused .theme-tab[aria-selected="true"] .theme-progress i { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }
.showcase-arrows { display: flex; gap: 10px; flex-shrink: 0; }


/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding-top: 36px; }
.section-tint { background: var(--bg-tint); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-title { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); font-weight: 900; line-height: 1.25; letter-spacing: .03em; }
.section-desc { margin-top: 8px; font-size: 15px; color: var(--text-3); }
.panel-title { margin-bottom: 18px; font-family: var(--serif); font-size: 26px; font-weight: 900; letter-spacing: .03em; }
.more-link { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 8px 16px; border-radius: var(--r-ui); font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--surface); transition: color .2s, background-color .2s; }
.more-link:hover { color: #fff; background: var(--surface-3); }
.more-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.more-link:hover .icon { transform: translateX(3px); }
.page-hero { padding: calc(var(--header) * 0 + 64px) 0 24px; background: radial-gradient(ellipse 60% 120% at 85% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%), radial-gradient(ellipse 50% 100% at 10% 0%, rgba(110, 70, 140, .25), transparent 70%); }
.page-title { font-family: var(--serif); font-size: clamp(40px, 5vw, 62px); font-weight: 900; line-height: 1.2; letter-spacing: .04em; }
.page-desc { margin-top: 12px; max-width: 600px; font-size: 16px; color: var(--text-2); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: grid; gap: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { border: 0; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; box-shadow: var(--bevel); border-radius: var(--r-ui); font-size: 14px; color: var(--text-2); background: var(--surface); transition: color .2s, background-color .2s; }
.chip:hover { color: var(--text); background: var(--surface-2); }
.chip[aria-current="true"] { color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 85%, #fff), var(--accent) 50%, color-mix(in srgb, var(--accent) 75%, #000)); box-shadow: var(--bevel); }
.chip-count { font-size: 12px; opacity: .7; }
.empty-state { display: grid; justify-items: center; gap: 14px; padding: 60px 20px; text-align: center; color: var(--text-2); }
.empty-state h2 { font-family: var(--serif); font-size: 28px; color: var(--text); }
.empty-emblem { width: 56px; height: 56px; color: var(--accent); }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: linear-gradient(180deg, #231c29, var(--surface)); overflow: hidden; box-shadow: var(--bevel), var(--shadow); transition: transform .25s, box-shadow .25s, background-color .25s; }
a.card:hover { transform: translateY(-3px); background: var(--surface-2); box-shadow: var(--bevel), 0 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent), 0 7px 0 rgba(0, 0, 0, .35); }
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.card:hover .cover img { transform: scale(1.05); }
.cover.is-empty { display: grid; place-items: center; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%), var(--surface-2); }
.cover-emblem { width: 56px; height: 56px; color: var(--accent-text); }
.cover-badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 22px 22px; }
.card-heading { display: flex; align-items: center; gap: 12px; }
.card-logo { width: 46px; height: 46px; border-radius: var(--r-ui); object-fit: cover; flex-shrink: 0; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .8); }
.card-title { font-family: var(--serif); font-size: 21px; font-weight: 900; line-height: 1.4; letter-spacing: .02em; }
.card-sub { font-size: 13px; color: var(--accent-text); }
.card-text { font-size: 14px; line-height: 1.75; color: var(--text-2); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.card-author { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--text-3); }
.meta-category { font-weight: 600; color: var(--accent-text); }
.article-card.is-horizontal { display: grid; grid-template-columns: minmax(200px, 42%) 1fr; }
.article-card.is-horizontal .cover { height: 100%; min-height: 180px; aspect-ratio: auto; }
.article-card.is-horizontal .card-body { justify-content: center; padding: 24px 28px; }
.article-lead { margin-bottom: 24px; }
.article-lead .card-title { font-size: clamp(24px, 2.6vw, 32px); }
.article-lead .cover { min-height: 300px; }
.tool-card, .author-card, .contact-item { flex-direction: row; align-items: center; gap: 18px; padding: 20px 22px; }
.tool-icon { display: grid; place-items: center; width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--r-ui); color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 85%, #fff), color-mix(in srgb, var(--accent) 60%, #000)); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.tool-icon .icon { width: 25px; height: 25px; }
.tool-body, .author-card > div, .contact-item > div { display: grid; gap: 2px; flex: 1; min-width: 0; }
.tool-body .card-title, .author-card .card-title, .contact-item .card-title { font-size: 19px; }
.tool-go { color: var(--text-3); transition: transform .2s, color .2s; }
a.card:hover .tool-go { color: var(--text); transform: translateX(3px); }

/* ---------- Project page ---------- */
.project-hero { position: relative; display: flex; align-items: flex-end; min-height: min(78svh, 760px); overflow: hidden; isolation: isolate; }
.project-hero-media { position: absolute; inset: 0; z-index: -2; }
.project-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(90deg, rgba(12, 9, 14, .9) 0%, rgba(12, 9, 14, .55) 40%, rgba(12, 9, 14, .1) 70%),
  linear-gradient(0deg, var(--bg) 0%, rgba(19, 16, 22, .6) 26%, rgba(19, 16, 22, 0) 55%),
  linear-gradient(180deg, rgba(12, 9, 14, .6) 0%, rgba(12, 9, 14, 0) 20%); }
.project-hero-content { padding-top: calc(var(--header) + 48px); padding-bottom: 48px; }
.project-hero-row { display: flex; align-items: flex-end; gap: 20px; }
.project-logo { width: 104px; height: 104px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .9); }
.project-subtitle { margin-top: 4px; font-size: 15px; color: var(--text-2); }
.hero-author { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 13px; color: var(--text-3); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; padding: 8px 16px 8px 12px; border-radius: var(--r-ui); font-size: 14px; color: #fff; background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.back-link:hover { background: rgba(255, 255, 255, .2); }
.back-link .icon { width: 16px; height: 16px; }
.back-link.is-plain { margin: 20px 0 0; background: var(--surface); }
.facts-band { position: relative; z-index: 2; }
.facts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 2px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.facts-row .fact { padding: 16px 20px; background: var(--surface); }
.fact dt { font-size: 12px; color: var(--text-3); }
.fact dd { margin-top: 3px; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; grid-template-areas: "main aside"; gap: clamp(32px, 4vw, 56px); align-items: start; padding-top: 48px; padding-bottom: 24px; }
.detail-layout.is-landscape { grid-template-columns: minmax(0, 1fr); grid-template-areas: "aside" "main"; }
.detail-main { grid-area: main; display: grid; gap: 52px; min-width: 0; }
.detail-aside { grid-area: aside; position: sticky; top: calc(var(--header) + 20px); }
.detail-layout.is-landscape .detail-aside { position: static; }
.prose { color: var(--text-2); font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-family: var(--serif); font-size: 26px; line-height: 1.4; color: var(--text); }
.prose h3 { margin-top: 1.6em; font-size: 19px; color: var(--text); }
.prose strong { color: var(--text); }
.prose a { color: var(--accent-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 4px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin-left: 0; padding: 14px 20px; border-radius: var(--radius-sm); color: var(--text); background: var(--surface); box-shadow: inset 4px 0 0 var(--accent); }
.prose code { padding: 2px 6px; border-radius: 6px; font-family: var(--mono); font-size: .88em; color: #ffd3da; background: var(--surface-2); }
.prose pre { padding: 18px 20px; border-radius: var(--radius-sm); overflow-x: auto; background: #0e0b10; }
.prose pre code { padding: 0; color: #e8dde2; background: none; font-size: 14px; line-height: 1.7; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 14px; }
.prose th, .prose td { padding: 10px 14px; text-align: left; background: var(--surface); }
.prose th { color: var(--text); background: var(--surface-2); }
.prose tr > :first-child { border-radius: 8px 0 0 8px; }
.prose tr > :last-child { border-radius: 0 8px 8px 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { margin-top: 8px; font-size: 13px; text-align: center; color: var(--text-3); }
.prose hr { height: 6px; border: 0; background: none; }
.prose input[type="checkbox"] { accent-color: var(--accent); margin-right: 6px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); }
.feature-index { font-family: var(--serif); font-size: 22px; font-weight: 900; line-height: 1.2; color: var(--accent-text); }
.feature p { font-size: 15px; line-height: 1.7; color: var(--text); }
.shots { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.shot { flex: 0 0 auto; width: 200px; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); scroll-snap-align: start; box-shadow: var(--shadow); transition: transform .25s; }
.shot:hover { transform: translateY(-3px); }
.shot img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); }
.timeline li:first-child { background: linear-gradient(90deg, var(--accent-soft), var(--surface) 60%); }
.timeline-date { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.timeline p { font-size: 15px; color: var(--text-2); }
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.credits div { padding: 14px 18px; border-radius: var(--radius); background: var(--surface); }
.credits dt { font-size: 12px; color: var(--text-3); }
.credits dd { margin-top: 2px; font-weight: 600; }
.related-project { flex-direction: row; align-items: center; gap: 18px; padding: 14px; margin-top: 28px; }
.related-project img { width: 150px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.related-project > div { flex: 1; min-width: 0; }

/* Trial player */
.player-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.player-head .panel-title { margin: 0; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-ui); background: var(--surface); }
.segmented button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: var(--r-ui); font-size: 13px; color: var(--text-2); background: transparent; transition: color .2s, background-color .2s; }
.segmented .icon { width: 15px; height: 15px; }
.segmented button[aria-pressed="true"] { color: #fff; background: var(--accent); box-shadow: var(--bevel); }
.play-area { border-radius: calc(var(--radius) + 4px); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.stage { display: flex; justify-content: center; align-items: center; height: clamp(480px, calc(100svh - var(--header) - 190px), 820px); padding: 22px; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%), #17121b; }
.play-area[data-orientation="landscape"] .stage { height: clamp(320px, 46vw, 620px); }
.device-space { position: relative; flex: none; }
.device { position: absolute; left: 0; top: 0; border: 8px solid #08060a; border-radius: 42px; background: #08060a; transform-origin: top left; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9); }
.device-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #1a141e; }
#game-frame { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.placeholder-screen { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: #1a141e; }
.placeholder-bg { position: absolute; inset: -20px; }
.placeholder-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) brightness(.45) saturate(1.2); }
.placeholder-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px; text-align: center; }
.placeholder-logo { width: 120px; height: 120px; border-radius: var(--radius); object-fit: cover; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .9); }
.placeholder-emblem { width: 80px; height: 80px; color: var(--accent-text); filter: drop-shadow(0 0 18px var(--accent)); }
.placeholder-screen h3 { font-family: var(--serif); font-size: 36px; font-weight: 900; text-shadow: 0 4px 20px rgba(0, 0, 0, .7); }
.placeholder-screen p { max-width: 300px; font-size: 17px; line-height: 1.8; color: var(--text-2); }
.placeholder-screen .button { height: 58px; padding: 0 32px; font-size: 18px; }
.loading-screen { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; font-size: 16px; color: var(--text-2); background: #1a141e; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--surface-3); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-toolbar { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 10px 0 20px; background: var(--surface-2); }
.player-state { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
#preview-state-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
#preview-state-dot.is-live { background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.player-tools { display: flex; gap: 4px; }
.tool-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--r-ui); color: var(--text-2); background: transparent; transition: background-color .2s, color .2s; }
.tool-button:hover:not(:disabled) { color: #fff; background: var(--surface-3); }
.tool-button:disabled { opacity: .35; }
.player-note { margin-top: 12px; font-size: 13px; color: var(--text-3); text-align: center; }
.play-area:fullscreen, .play-area.is-expanded { display: flex; flex-direction: column; width: 100%; height: 100dvh; border-radius: 0; }
.play-area.is-expanded { position: fixed; inset: 0; z-index: 80; }
.play-area:fullscreen .stage, .play-area.is-expanded .stage { flex: 1; height: auto; min-height: 0; }
body.preview-expanded { overflow: hidden; }
.mobile-play-card { position: relative; display: block; border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow); }
.mobile-play-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: brightness(.55); }
.mobile-play-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.mobile-play-inner strong { font-family: var(--serif); font-size: 24px; }
.mobile-play-inner small { font-size: 13px; color: var(--text-2); }
.play-orb { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 30%, transparent), 0 16px 40px -10px var(--accent); animation: pulse 2.4s ease-in-out infinite; }
.play-orb .icon { width: 30px; height: 30px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 12%, transparent), 0 16px 40px -10px var(--accent); } }

.lightbox { max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(8, 6, 10, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { display: grid; justify-items: center; gap: 12px; }
.lightbox figcaption { max-width: 80vw; font-size: 14px; color: var(--text-2); text-align: center; }
.lightbox img { max-width: 92vw; max-height: 84dvh; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .8); }
.lightbox-close { position: fixed; top: 18px; right: 18px; }

/* ---------- Fullscreen play page ---------- */
body.is-play { overflow: hidden; background: #000; overscroll-behavior: none; }
.play-shell { position: fixed; inset: 0; display: grid; place-items: center; background: #0b090d; }
.play-backdrop { position: absolute; inset: -40px; }
.play-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(30px) brightness(.35) saturate(1.2); }
.play-frame-wrap { position: relative; width: 100vw; height: 100dvh; background: #000; }
.play-frame-wrap iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 760px) and (min-height: 500px) {
  .play-shell[data-orientation="portrait"] .play-frame-wrap { width: min(100vw, calc(100dvh * 9 / 19.5)); height: min(100dvh, 940px); border-radius: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .8); }
  .play-shell[data-orientation="landscape"] .play-frame-wrap { width: min(100vw, calc(100dvh * 19.5 / 9)); height: min(100dvh, calc(100vw * 9 / 19.5)); }
}
.play-loading { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; background: rgba(11, 9, 13, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .5s, visibility .5s; }
.play-loading.is-done { opacity: 0; visibility: hidden; }
.play-loading strong { font-family: var(--serif); font-size: 28px; }
.play-loading small { font-size: 13px; color: var(--text-3); }
.play-logo { width: 104px; height: 104px; border-radius: var(--radius); object-fit: cover; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .9); }
.play-bar { width: 180px; height: 4px; border-radius: 4px; overflow: hidden; background: var(--surface-3); }
.play-bar i { display: block; width: 40%; height: 100%; border-radius: 4px; background: var(--accent); animation: indeterminate 1.2s ease-in-out infinite; }
@keyframes indeterminate { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.play-rotate { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: rgba(11, 9, 13, .94); }
.play-rotate strong { font-family: var(--serif); font-size: 26px; }
.play-rotate small { color: var(--text-3); }
.rotate-icon { width: 64px; height: 64px; color: var(--accent); animation: rotate-hint 2s ease-in-out infinite; }
@keyframes rotate-hint { 40%, 60% { transform: rotate(-90deg); } }
.play-hud { position: absolute; z-index: 7; top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); display: flex; gap: 8px; transition: opacity .4s; }
.play-hud.is-idle { opacity: .25; }
.play-hud:hover, .play-hud:focus-within { opacity: 1; }
.hud-button { display: inline-flex; align-items: center; gap: 6px; height: 38px; min-width: 38px; justify-content: center; padding: 0 12px; border: 0; border-radius: var(--r-ui); font-size: 13px; color: #fff; background: rgba(12, 9, 14, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hud-button .icon { width: 16px; height: 16px; }

/* ---------- Article ---------- */
.article-header { padding: 56px 0 32px; background: radial-gradient(ellipse 60% 120% at 80% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%); }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--text-3); }
.breadcrumb a:hover { color: var(--text); }
.article-title { margin-top: 16px; font-family: var(--serif); font-size: clamp(32px, 4.4vw, 50px); font-weight: 900; line-height: 1.3; letter-spacing: .02em; }
.article-summary { margin-top: 16px; font-size: 18px; line-height: 1.8; color: var(--text-2); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 24px; font-size: 14px; color: var(--text-3); }
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); justify-content: center; gap: 56px; padding-top: 48px; }
.prose-article { font-size: 17px; }
.toc { position: sticky; top: calc(var(--header) + 24px); align-self: start; padding: 18px; border-radius: var(--radius); background: var(--surface); font-size: 14px; }
.toc-title { margin-bottom: 10px; font-weight: 700; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--text-3); line-height: 1.5; transition: color .2s, background-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.is-current { color: #fff; background: var(--accent-soft); }
.toc-3 a { padding-left: 22px; font-size: 13px; }
.article-footer { padding-top: 40px; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.prev-next .card { padding: 18px 20px; gap: 4px; }
.prev-next small { color: var(--text-3); }
.prev-next span { font-weight: 600; }
.prev-next .is-next { text-align: right; }

/* ---------- Authors, about, forms ---------- */
.author-hero { display: flex; align-items: center; gap: 28px; }
.author-bio { max-width: 760px; margin-bottom: 48px; }
.contact-form { gap: 16px; padding: 28px; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 0; border-radius: var(--radius-sm); font-size: 15px; color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; font-size: 14px; color: var(--text-2); }
.form-status.is-error { color: #ff8b9b; }
.form-status.is-ok { color: #7ee2a8; }

/* ---------- Tools ---------- */
.tool-root { min-height: 300px; }
.tool-doc { max-width: 760px; margin-top: 48px; }
.tool-panel { padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.tool-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.tool-controls { display: grid; gap: 14px; }
.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dropzone { display: grid; place-items: center; gap: 8px; min-height: 160px; padding: 20px; border-radius: var(--radius); text-align: center; color: var(--text-2); background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 12px, var(--surface) 12px, var(--surface) 24px); cursor: pointer; transition: box-shadow .2s; }
.dropzone.is-over, .dropzone:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.dropzone .icon { width: 30px; height: 30px; color: var(--accent-text); }
.checker { background-color: #2a2231; background-image: linear-gradient(45deg, #332a3b 25%, transparent 25%, transparent 75%, #332a3b 75%), linear-gradient(45deg, #332a3b 25%, transparent 25%, transparent 75%, #332a3b 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.canvas-wrap { position: relative; overflow: auto; max-height: 560px; border-radius: var(--radius-sm); }
.canvas-wrap canvas { display: block; max-width: 100%; image-rendering: pixelated; }
.frames { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.frames canvas { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; image-rendering: pixelated; cursor: pointer; }
.frames canvas.is-off { opacity: .25; }
.preview-box { display: grid; place-items: center; min-height: 220px; border-radius: var(--radius-sm); }
.preview-box canvas { image-rendering: pixelated; max-width: 100%; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.prompt-list { display: grid; gap: 12px; }
.prompt-item { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); }
.prompt-item h3 { font-size: 17px; }
.prompt-item pre { margin: 10px 0 0; white-space: pre-wrap; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--text-2); }
.prompt-vars { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 12px; }
.prompt-vars input { padding: 8px 12px; border: 0; border-radius: 8px; background: var(--surface-2); }
.prompt-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.device-wall { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 20px; }
.device-card { display: grid; gap: 8px; justify-items: center; font-size: 13px; color: var(--text-3); }
.device-card .frame { position: relative; border: 6px solid #08060a; border-radius: 24px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.device-card iframe { border: 0; transform-origin: top left; }
.device-card .safe { position: absolute; left: 0; right: 0; pointer-events: none; background: rgba(255, 60, 90, .25); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr) 380px; }
  .article-layout { grid-template-columns: minmax(0, 760px); }
  .toc { display: none; }
}
@media (max-width: 1020px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .tool-grid { grid-template-columns: 1fr; }
  .only-desktop { display: none !important; }
  .only-mobile { display: inline-flex !important; }
  .mobile-play-card.only-mobile { display: block !important; }
  .detail-layout, .detail-layout.is-landscape { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; gap: 36px; }
  .detail-layout .mobile-play-card { margin-top: -12px; }
  .layer-char { width: 60vw; right: -6%; height: 64%; opacity: .9; }
}
@media (max-width: 760px) {
  :root { --header: 64px; }
  .menu-button { display: grid; }
  .main-nav { position: fixed; top: var(--header); left: 0; right: 0; flex-direction: column; gap: 4px; padding: 12px 20px 24px; background: rgba(19, 16, 22, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .site-header.is-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-link { padding: 12px 16px; font-size: 16px; }
  .grid-2, .grid-3, .feature-grid { grid-template-columns: 1fr; }
  .showcase { height: max(680px, 100svh); }
  .slide { align-items: flex-end; }
  .slide-content { padding-bottom: 130px; }
  .slide-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(19, 16, 22, .88) 34%, rgba(19, 16, 22, .2) 68%, rgba(12, 9, 14, .5) 100%); }
  .layer-bg img { object-position: 72% 40%; }
  .layer-char { right: 50%; transform-origin: center; width: 88vw; height: 46%; bottom: auto; top: 12%; margin-right: -44vw; }
  .slide.is-active .layer-char { transform: translate3d(0, 0, 0); }
  .hero-text { display: none; }
  .showcase-nav { bottom: 20px; }
  .showcase-arrows { display: none; }
  .theme-tab { height: 48px; padding-right: 12px; }
  .theme-thumb { width: 36px; height: 36px; }
  .theme-name { font-size: 13px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .article-card.is-horizontal { grid-template-columns: 1fr; }
  .article-card.is-horizontal .cover { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .article-lead .cover { min-height: 0; }
  .project-hero { min-height: 560px; }
  .project-logo { width: 72px; height: 72px; border-radius: var(--radius); }
  .project-hero-row { align-items: center; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .shot { width: 150px; }
  .prev-next { grid-template-columns: 1fr; }
  .prev-next .is-next { text-align: left; }
  .author-hero { flex-direction: column; align-items: flex-start; }
  .related-project img { width: 96px; }
  .tool-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
.copy-code { position: absolute; top: 10px; right: 10px; height: 30px; padding: 0 12px; font-size: 12px; opacity: .8; }
.detail-main > *, .detail-section { min-width: 0; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }
.check-inline input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
.check-inline input[type="range"] { accent-color: var(--accent); }
.empty-note { padding: 30px 0; text-align: center; }
.tool-controls input, .tool-controls select, .tool-controls textarea, .tool-panel input[type="url"], .tool-root .field input[type="search"] { width: 100%; padding: 10px 12px; border: 0; border-radius: var(--radius-sm); color: var(--text); background: var(--surface-2); }
.tool-controls input[type="range"] { padding: 0; background: none; accent-color: var(--accent); }

/* ---------- Inventory (tools), roster (creators), commission board ---------- */
.inventory { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.item-slot { display: grid; grid-template-columns: 76px 1fr; grid-template-rows: 1fr auto; gap: 14px 16px; padding: 16px; border-radius: var(--radius); background: linear-gradient(180deg, #241d2a, var(--surface)); box-shadow: var(--bevel), var(--shadow); transition: transform .15s, box-shadow .15s; }
.item-slot:hover { transform: translateY(-3px); box-shadow: var(--bevel), 0 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent), 0 7px 0 rgba(0, 0, 0, .35); }
.item-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 76px; height: 76px; border-radius: var(--r-ui); color: var(--accent-text); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%), #120e15; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 45%, #2c2433), inset 0 -6px 0 rgba(0, 0, 0, .35); }
.item-icon .icon { width: 32px; height: 32px; stroke-width: 1.7; }
.item-body { display: grid; align-content: start; gap: 4px; min-width: 0; }
.item-name { font-family: var(--serif); font-size: 19px; font-weight: 900; }
.item-desc { font-size: 14px; line-height: 1.7; color: var(--text-2); }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; font-size: 12px; color: var(--text-3); box-shadow: inset 0 2px 0 rgba(0, 0, 0, .25); }
.item-use { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--accent-text); }
.item-use .icon { width: 14px; height: 14px; transition: transform .15s; }
.item-slot:hover .item-use .icon { transform: translateX(3px); }

.roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.roster.is-stacked { grid-template-columns: 1fr; }
.char-card { display: grid; grid-template-columns: 132px 1fr; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, #241d2a, var(--surface)); box-shadow: var(--bevel), var(--shadow); transition: transform .15s, box-shadow .15s; }
.char-card:hover { transform: translateY(-3px); box-shadow: var(--bevel), 0 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent), 0 7px 0 rgba(0, 0, 0, .35); }
.char-portrait { position: relative; display: grid; place-items: center; min-height: 160px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%), #120e15; }
.char-portrait img { width: 100%; height: 100%; object-fit: cover; }
.char-letter { font-family: var(--serif); font-size: 64px; font-weight: 900; color: #fff; text-shadow: 0 6px 20px rgba(0, 0, 0, .6); }
.char-rank { position: absolute; left: 0; bottom: 10px; padding: 3px 12px 3px 10px; font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.char-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; min-width: 0; }
.char-name { font-family: var(--serif); font-size: 22px; font-weight: 900; }
.char-role { font-size: 14px; color: var(--text-2); }
.char-stats { display: flex; gap: 8px; margin-top: 4px; }
.char-stats span { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: var(--r-ui); font-size: 12px; color: var(--text-3); background: rgba(0, 0, 0, .3); }
.char-stats strong { font-family: var(--mono); font-size: 18px; color: var(--accent-text); }
.char-more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--accent-text); }
.char-more .icon { width: 14px; height: 14px; }

.board { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%), linear-gradient(180deg, #211a27, #17121b); box-shadow: var(--bevel), var(--shadow); }
.board-head { max-width: 640px; margin-bottom: 26px; }
.board-head .eyebrow { margin-bottom: 14px; border-radius: var(--r-ui); }
.board-quests { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quest { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border-radius: var(--r-ui); background: #120e15; box-shadow: inset 0 0 0 2px #2c2433, inset 0 -5px 0 rgba(0, 0, 0, .35); }
.quest-head { display: flex; align-items: center; justify-content: space-between; }
.quest-tag { padding: 3px 10px; font-size: 12px; font-weight: 700; color: #1a1216; background: #f2c766; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.quest-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-ui); color: var(--accent-text); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.quest h3 { font-family: var(--serif); font-size: 24px; font-weight: 900; }
.quest p { font-size: 14px; line-height: 1.8; color: var(--text-2); }
.quest ul { list-style: none; display: grid; gap: 6px; margin: 4px 0 0; padding: 0; font-size: 14px; color: var(--text); }
.quest li { display: flex; gap: 10px; }
.quest li::before { content: ''; flex-shrink: 0; width: 8px; height: 8px; margin-top: 8px; background: var(--accent); transform: rotate(45deg); }
.quest-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; font-size: 12px; color: var(--text-3); }

/* ---------- 灵感 ---------- */
.masonry { columns: 3 300px; column-gap: 16px; }
.inspiration-card { position: relative; display: block; margin-bottom: 16px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--bevel), var(--shadow); transition: transform .15s, box-shadow .15s; }
.inspiration-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent), 0 7px 0 rgba(0, 0, 0, .35); }
.inspiration-card img { width: 100%; height: auto; max-height: 440px; object-fit: cover; object-position: top; background: #e9e4dc; }
.inspiration-info { display: grid; gap: 4px; padding: 14px 18px 16px; background: linear-gradient(180deg, #241d2a, var(--surface)); }
.inspiration-title { font-family: var(--serif); font-size: 19px; font-weight: 900; line-height: 1.4; }
.inspiration-meta { font-size: 12px; color: var(--text-3); }
.inspiration .article-header .container { max-width: calc(1000px + 2 * var(--gutter)); }
.plates { display: grid; gap: 22px; max-width: 1000px; margin: 8px auto 0; }
.plate { border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--bevel), var(--shadow); }
.plate-image { display: block; width: 100%; padding: 0; border: 0; background: #ece7df; cursor: zoom-in; }
.plate-image img { width: 100%; height: auto; }
.plate figcaption { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; font-size: 14px; color: var(--text-2); }
.plate-index { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent-text); }
.inspiration-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; max-width: 1000px; margin: 48px auto 0; align-items: start; }
.side-card { position: sticky; top: calc(var(--header) + 20px); display: grid; gap: 16px; padding: 20px; border-radius: var(--radius); background: linear-gradient(180deg, #241d2a, var(--surface)); box-shadow: var(--bevel), var(--shadow); }
.side-card h2 { font-family: var(--serif); font-size: 18px; }
.side-card dl { display: grid; gap: 8px; font-size: 14px; }
.side-card dl div { display: flex; justify-content: space-between; gap: 12px; }
.side-card dt { color: var(--text-3); }
.side-card dd a { color: var(--accent-text); }
.side-card .related-project { margin-top: 0; }
.side-card .related-project img { width: 96px; }

@media (max-width: 1180px) {
  .hud-counters { display: none; }
}
@media (max-width: 1020px) {
  .board-quests, .inspiration-body, .footer-panel { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .quick-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) and (min-width: 761px) {
  .nav-link kbd { display: none; }
}
@media (max-width: 760px) {
  .main-nav { margin-left: 0; }
  .nav-link { height: 48px; clip-path: none; border-radius: var(--r-ui); }
  .nav-link kbd { display: none; }
  .site-header .brand { clip-path: none; background: none; box-shadow: none; padding: 0; }
  .char-card { grid-template-columns: 100px 1fr; }
  .char-letter { font-size: 48px; }
  .archive-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-item.is-grow { order: -1; flex-basis: 100%; justify-content: flex-start; }
  .slot kbd { display: none; }
  .item-slot { grid-template-columns: 60px 1fr; }
  .item-icon { width: 60px; height: 60px; }
}
