/* 小孔同学 · 暗房 (Darkroom) design system
   Concept: 小孔成像 — light passes through a pinhole and becomes an image.
   Warm black room, bone-white paper, one safelight accent, light-beam highlights. */

@font-face { font-family: "XK Display"; src: url(fonts/xk-display.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(fonts/dm-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(fonts/dm-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-italic.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --bg: #0C0B0A;
  --bg1: #131210;
  --bg2: #1B1917;
  --bg3: #262320;
  --line: rgba(255, 238, 214, .10);
  --line2: rgba(255, 238, 214, .2);
  --tx: #F3EEE5;
  --tx2: #BDB5A8;
  --mut: #8C8478;
  --accent: #FF4B24;
  --accent2: #FF6A47;
  --beam: #FFD9A8;
  --ok: #7FDBA8;
  --warn: #F2C14E;
  --err: #FF7A66;
  --display: "XK Display", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --italic: "Instrument Serif", Georgia, serif;
  --r: 12px;
  --r-lg: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--tx); font: 15px/1.65 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
body::before { /* film grain */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .85 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--beam); outline-offset: 2px; }
main, main:focus, main:focus-visible { outline: none; }
.hidden { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }
.ic.fill { fill: currentColor; }
.mark { width: 28px; height: 28px; color: var(--tx); flex: none; }
.mono { font-family: var(--mono); }
.muted { color: var(--mut); }
.display { font-family: var(--display); font-weight: 900; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); }

.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mut); }
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px 2px rgba(255, 75, 36, .7); }
.kicker i { font-style: normal; color: var(--tx2); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 34px; height: 64px; padding: 0 clamp(16px, 4vw, 48px); background: rgba(12, 11, 10, .7); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font: 900 19px/1 var(--display); letter-spacing: .06em; }
.brand-tag { font: 500 9.5px/1 var(--mono); letter-spacing: .2em; color: var(--mut); padding-left: 10px; border-left: 1px solid var(--line2); }
.nav { display: flex; gap: 26px; height: 100%; }
.nav a { position: relative; display: flex; align-items: center; text-decoration: none; color: var(--tx2); font-size: 14px; transition: color .15s; white-space: nowrap; }
.nav a:hover { color: var(--tx); }
.nav a.active { color: var(--tx); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.credit { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--line2); text-decoration: none; font-size: 13px; color: var(--tx2); transition: border-color .15s, background .15s; }
.credit:hover { border-color: var(--beam); }
.credit .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--beam); box-shadow: 0 0 10px 2px rgba(255, 217, 168, .6); }
.credit b { font: 500 15px var(--mono); color: var(--tx); }
.credit.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.1); background: rgba(255, 217, 168, .14); } }
.avatar-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line2); background: var(--bg2); color: var(--tx); font: 600 14px/1 var(--sans); }
.avatar-btn:hover { border-color: var(--tx2); }
.menu { position: fixed; right: clamp(16px, 4vw, 48px); top: 60px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 210px; z-index: 60; animation: pop .18s var(--ease); }
.menu .who { padding: 10px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu .who small { color: var(--mut); display: block; font-family: var(--mono); font-size: 12px; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; border: 0; background: none; text-decoration: none; font-size: 14px; color: var(--tx2); }
.menu a:hover, .menu button:hover { background: var(--bg3); color: var(--tx); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* ---------- buttons ---------- */
.btn { --b: var(--tx); --f: #14110D; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--b); background: var(--b); color: var(--f); font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; transition: transform .15s var(--ease), background .15s, border-color .15s, opacity .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.btn.accent { --b: var(--accent); --f: #fff; box-shadow: 0 10px 30px -10px rgba(255, 75, 36, .7); }
.btn.accent:hover { --b: var(--accent2); }
.btn.ghost { --b: var(--line2); --f: var(--tx); background: transparent; }
.btn.ghost:hover { --b: var(--tx2); background: rgba(255, 238, 214, .05); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.lg { height: 56px; padding: 0 26px; font-size: 16px; }
.btn.block { width: 100%; }
.btn .arr { display: grid; place-items: center; width: 30px; height: 30px; margin-right: -14px; margin-left: 6px; border-radius: 50%; background: rgba(0, 0, 0, .22); transition: transform .25s var(--ease); }
.btn.lg .arr { width: 36px; height: 36px; margin-right: -16px; }
.btn:not(.accent):not(.ghost) .arr { background: #14110D; color: var(--tx); }
.btn:hover .arr { transform: rotate(-45deg); }
.link-btn { background: none; border: 0; padding: 0; color: var(--beam); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 217, 168, .4); }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(12, 11, 10, .6); color: var(--tx2); display: grid; place-items: center; text-decoration: none; transition: all .15s; padding: 0; }
.icon-btn:hover { border-color: var(--tx2); color: var(--tx); }
.icon-btn.on { background: var(--beam); border-color: var(--beam); color: #14110D; }
.icon-btn.danger:hover { border-color: var(--err); color: var(--err); }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span, .label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: var(--tx2); margin-bottom: 8px; }
.field > span em, .label em { font-style: normal; font-weight: 400; color: var(--mut); font-size: 12px; }
.req { color: var(--accent); margin-left: 3px; font-style: normal; }
.input, .textarea { width: 100%; border: 1px solid var(--line); background: var(--bg2); border-radius: var(--r); padding: 11px 14px; outline: none; color: var(--tx); transition: border-color .15s, box-shadow .15s, background .15s; }
.input:hover, .textarea:hover { border-color: var(--line2); }
.input:focus, .textarea:focus { border-color: var(--beam); box-shadow: 0 0 0 4px rgba(255, 217, 168, .1); background: var(--bg1); }
.textarea { resize: vertical; min-height: 84px; line-height: 1.65; display: block; }
.input::placeholder, .textarea::placeholder { color: #6B645A; }
.form-error { color: var(--err); font-size: 13px; min-height: 20px; margin: -4px 0 10px; }
.inline { display: flex; gap: 8px; }
.inline .input { flex: 1; min-width: 0; }

/* ---------- shared pieces ---------- */
.card { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pad { padding: 24px; }
.page-head { padding: clamp(36px, 6vw, 72px) 0 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font: 900 clamp(34px, 5.4vw, 68px)/1.08 var(--display); margin: 18px 0 0; letter-spacing: -.01em; }
.page-head p { margin: 12px 0 0; color: var(--mut); }
.h3 { font: 900 20px/1.3 var(--display); margin: 0; }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line); gap: 2px; }
.tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--mut); transition: color .15s; }
.tabs button:hover { color: var(--tx); }
.tabs button.on { background: var(--tx); color: #14110D; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--bg3); color: var(--tx2); }
.badge.ok { background: rgba(127, 219, 168, .14); color: var(--ok); }
.badge.fail { background: rgba(255, 122, 102, .14); color: var(--err); }
.badge.run { background: rgba(242, 193, 78, .14); color: var(--warn); }
.spin { width: 20px; height: 20px; border: 2px solid var(--line2); border-top-color: var(--beam); border-radius: 50%; animation: spin .9s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-page { display: grid; place-items: center; min-height: 50vh; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font: 500 10.5px var(--mono); letter-spacing: .14em; color: var(--mut); padding: 10px 12px; border-bottom: 1px solid var(--line); text-transform: uppercase; white-space: nowrap; }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { font-family: var(--mono); text-align: right; white-space: nowrap; }
.plus { color: var(--ok); }
.minus { color: var(--err); }

.wechat-line { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.wechat-line .wx { width: 32px; height: 32px; border-radius: 9px; background: #07C160; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.wechat-line b { font: 500 16px var(--mono); flex: 1; word-break: break-all; }
.qr { width: 148px; border-radius: 12px; background: #fff; padding: 8px; }

/* toast */
.toasts { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 8px; background: var(--tx); color: #14110D; padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow); font-size: 14px; font-weight: 500; animation: toast .3s var(--ease); }
.toast.err { background: #3A1410; color: #FFD3CC; border: 1px solid rgba(255, 122, 102, .5); }
.toast.ok .ic { color: #1E8A55; }
@keyframes toast { from { opacity: 0; transform: translateY(-10px); } }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 90; display: grid; place-items: center; padding: 16px; animation: fade .2s; overflow: auto; }
.modal { width: min(440px, 100%); background: var(--bg1); border: 1px solid var(--line2); border-radius: 24px; box-shadow: var(--shadow); padding: 32px; position: relative; animation: pop .25s var(--ease); }
.modal .close, .drawer .close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.modal h2 { font: 900 28px/1.2 var(--display); margin: 16px 0 8px; }
.modal .lead { color: var(--tx2); margin: 0 0 22px; }
.modal-auth { width: min(860px, 100%); padding: 0; display: grid; grid-template-columns: .85fr 1fr; overflow: hidden; }
.auth-vis { position: relative; background: #000; min-height: 520px; }
.auth-vis img { position: absolute; inset: 0; width: 100%; height: 86%; object-fit: cover; object-position: top; }
.auth-vis::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .92) 0, rgba(0, 0, 0, .8) 16%, transparent 34%); }
.auth-cap { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; font: 11px/1.6 var(--mono); letter-spacing: .08em; color: rgba(255, 255, 255, .75); }
.auth-cap b { display: block; font: 900 20px/1.3 var(--display); letter-spacing: 0; color: #fff; margin-bottom: 4px; }
.auth-main { padding: 36px 34px 30px; }
.auth-gift { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; background: rgba(255, 217, 168, .08); border: 1px solid rgba(255, 217, 168, .22); margin-bottom: 20px; font-size: 13.5px; color: var(--tx2); }
.auth-gift b { color: var(--beam); }
.auth-gift .n { font: 900 26px/1 var(--display); color: var(--beam); }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--mut); }
@keyframes fade { from { opacity: 0; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(4, 4, 3, .96); display: grid; grid-template-columns: 1fr 360px; animation: fade .2s; }
.lightbox .lb-img { display: grid; place-items: center; padding: 34px; min-height: 0; min-width: 0; }
.lightbox .lb-img img { max-width: 100%; max-height: calc(100vh - 68px); border-radius: 4px; box-shadow: 0 40px 120px rgba(0, 0, 0, .8); }
.lightbox aside { background: var(--bg1); border-left: 1px solid var(--line); padding: 30px 24px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.lightbox aside h3 { font: 600 19px/1.4 var(--sans); margin: 4px 0 0; }
.lightbox .close { position: absolute; top: 16px; left: 16px; z-index: 2; }
.kv { display: grid; grid-template-columns: 56px 1fr; gap: 8px 12px; font-size: 13.5px; margin: 4px 0; }
.kv dt { color: var(--mut); }
.kv dd { margin: 0; word-break: break-word; color: var(--tx2); }

/* drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 80; animation: fade .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--bg); border-left: 1px solid var(--line2); z-index: 81; overflow: auto; padding: 28px 24px; box-shadow: var(--shadow); animation: slide .3s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer h2 { font: 600 24px/1.3 var(--sans); margin: 14px 0 0; }
.box { background: var(--bg1); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-top: 14px; }
.box h4 { margin: 0 0 12px; font: 600 14px var(--sans); color: var(--tx2); }
.box.bal { background: var(--tx); color: #14110D; border: 0; }
.box.bal .k { font: 500 10.5px var(--mono); letter-spacing: .16em; opacity: .6; }
.box.bal .v { font: 900 52px/1.1 var(--display); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; color: var(--tx2); transition: all .15s; }
.chip:hover { border-color: var(--beam); color: var(--beam); }

/* ================= landing ================= */
.hero { padding-top: clamp(28px, 4.4vw, 60px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: clamp(24px, 4vw, 72px); align-items: end; }
.hero h1 { font: 900 clamp(46px, 7.8vw, 112px)/1.04 var(--display); letter-spacing: -.02em; margin: 24px 0 0; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent) 15%, var(--beam) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .ln { display: block; }
.hero-side p { color: var(--tx2); font-size: 16px; line-height: 1.85; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 30px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mut); }
.facts b { display: block; font: 900 26px/1.2 var(--display); color: var(--tx); }
.facts b small { font: 500 12px var(--mono); color: var(--mut); margin-left: 3px; }

/* the optical bench: object → pinhole → image */
.bench { position: relative; margin-top: clamp(40px, 5vw, 68px); aspect-ratio: 2.2; --px: 35.2%; }
.bench .rays { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.rays .rm { display: none; }
.rays line { stroke: rgba(255, 217, 168, .5); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 9; animation: travel 1.1s linear infinite; }
.rays polygon { animation: beam 4.5s ease-in-out infinite; }
@keyframes travel { to { stroke-dashoffset: -12; } }
@keyframes beam { 50% { opacity: .72; } }
.b-obj, .b-img { position: absolute; margin: 0; }
.b-obj { left: 0; top: 50%; width: 21%; transform: translateY(-50%); }
.b-obj .b-frame { aspect-ratio: 1; background: #fff; }
.b-img { right: 0; top: 0; height: 100%; aspect-ratio: 3 / 4; box-shadow: 0 0 120px -20px rgba(255, 150, 90, .35); }
.b-frame { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 3px; background: var(--bg2); }
.b-frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, filter .6s, transform .9s var(--ease); }
.bench.swap .b-frame img { opacity: 0; filter: blur(16px) brightness(1.6); transform: scale(1.05); }
.b-tag { position: absolute; left: 10px; top: 10px; z-index: 1; font: 500 10px/1 var(--mono); letter-spacing: .1em; padding: 6px 8px; border-radius: 4px; background: rgba(12, 11, 10, .62); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.b-cap { position: absolute; left: 0; top: calc(100% + 12px); font: 500 10.5px/1.5 var(--mono); letter-spacing: .12em; color: var(--mut); white-space: nowrap; }
.b-cap b { color: var(--tx2); font-weight: 500; }
.b-plate { position: absolute; left: var(--px); top: -5%; bottom: -5%; width: 1px; background: linear-gradient(to bottom, transparent, var(--line2) 14%, var(--line2) 47.4%, transparent 47.4%, transparent 52.6%, var(--line2) 52.6%, var(--line2) 86%, transparent); }
.hole { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 217, 168, .25), 0 0 22px 6px rgba(255, 170, 100, .8), 0 0 90px 24px rgba(255, 75, 36, .4); animation: glow 4.5s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(255, 217, 168, .3), 0 0 30px 10px rgba(255, 170, 100, .9), 0 0 120px 36px rgba(255, 75, 36, .5); } }
.cap-hole { left: var(--px); top: calc(50% + 26px); transform: translateX(-50%); text-align: center; }
.marks i { position: absolute; width: 12px; height: 12px; border: 0 solid rgba(243, 238, 229, .5); pointer-events: none; }
.marks i:nth-child(1) { top: -8px; left: -8px; border-top-width: 1px; border-left-width: 1px; }
.marks i:nth-child(2) { top: -8px; right: -8px; border-top-width: 1px; border-right-width: 1px; }
.marks i:nth-child(3) { bottom: -8px; left: -8px; border-bottom-width: 1px; border-left-width: 1px; }
.marks i:nth-child(4) { bottom: -8px; right: -8px; border-bottom-width: 1px; border-right-width: 1px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.step { padding: 26px 30px 0; border-left: 1px solid var(--line); }
.step:first-child { padding-left: 0; border-left: 0; }
.step .n { font: 500 11px var(--mono); letter-spacing: .16em; color: var(--accent2); }
.step h3 { font: 900 clamp(22px, 2.4vw, 30px)/1.25 var(--display); margin: 14px 0 10px; }
.step p { color: var(--tx2); margin: 0; font-size: 14.5px; max-width: 24em; }

/* film strip */
.film { position: relative; margin-top: clamp(72px, 10vw, 140px); padding: 34px 0; background: #050504; border-block: 1px solid var(--line); overflow: hidden; }
.film::before, .film::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: repeating-linear-gradient(90deg, transparent 0 13px, rgba(243, 238, 229, .13) 13px 27px, transparent 27px 40px); }
.film::before { top: 11px; }
.film::after { bottom: 11px; }
.film-track { display: flex; gap: 8px; width: max-content; animation: film 70s linear infinite; }
.film:hover .film-track { animation-play-state: paused; }
@keyframes film { to { transform: translateX(-50%); } }
.fr { position: relative; height: clamp(190px, 25vw, 330px); flex: none; overflow: hidden; border-radius: 2px; background: var(--bg2); }
.fr img { width: 100%; height: 100%; object-fit: cover; }
.fr span { position: absolute; left: 8px; bottom: 8px; font: 500 10px/1 var(--mono); letter-spacing: .1em; padding: 5px 7px; border-radius: 3px; background: rgba(0, 0, 0, .6); color: #fff; }

.sec { padding-top: clamp(84px, 11vw, 160px); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head h2 { font: 900 clamp(32px, 5.4vw, 76px)/1.1 var(--display); margin: 20px 0 0; letter-spacing: -.01em; }
.sec-head h2 span { font: italic 400 1.02em var(--italic); letter-spacing: 0; color: var(--beam); padding: 0 .08em; }
.sec-head p { color: var(--tx2); max-width: 25em; margin: 0; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--bg2); }
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.t-l { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13.5px; color: #fff; padding: 7px 13px 7px 10px; border-radius: 999px; background: rgba(12, 11, 10, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.t-l i { font: 500 10px var(--mono); color: var(--beam); font-style: normal; }
.tile.text { aspect-ratio: auto; grid-column: span 2; background: var(--bg1); border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.tile.text h3 { font: 900 clamp(20px, 2.2vw, 28px)/1.3 var(--display); margin: 0; }
.tile.text p { margin: 8px 0 0; color: var(--tx2); font-size: 14px; }

.pricing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.ticket { position: relative; background: var(--tx); color: #14110D; border-radius: 20px; display: grid; grid-template-columns: 1fr 92px; overflow: hidden; min-height: 300px; }
.ticket-main { padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.ticket .k { font: 500 10.5px var(--mono); letter-spacing: .18em; opacity: .55; }
.ticket .big { font: 900 clamp(84px, 11vw, 148px)/.9 var(--display); letter-spacing: -.03em; margin-top: 10px; }
.ticket .big small { font: 900 clamp(18px, 2vw, 24px) var(--display); letter-spacing: 0; margin-left: 10px; }
.ticket p { margin: 0; font-size: 14.5px; max-width: 26em; opacity: .78; }
.ticket-stub { position: relative; border-left: 2px dashed rgba(20, 17, 13, .3); display: grid; place-items: center; }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.ticket-stub::before { top: -11px; }
.ticket-stub::after { bottom: -11px; }
.ticket-stub span { writing-mode: vertical-rl; font: 500 11px var(--mono); letter-spacing: .3em; opacity: .55; white-space: nowrap; }
.btn.dark { --b: #14110D; --f: var(--tx); }
.btn.dark .arr { background: var(--accent) !important; color: #fff !important; }
.contact-card { padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; }
.contact-card h3 { font: 900 24px/1.3 var(--display); margin: 8px 0 0; }
.contact-card p { margin: 0; color: var(--tx2); font-size: 14px; }

.cta { position: relative; margin-top: clamp(84px, 11vw, 160px); text-align: center; padding: clamp(60px, 9vw, 120px) 20px; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: radial-gradient(60% 90% at 50% 0%, rgba(255, 75, 36, .22), transparent 70%), var(--bg1); }
.cta::before { content: ""; position: absolute; left: 50%; top: 0; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 30px 10px rgba(255, 170, 100, .9), 0 0 120px 40px rgba(255, 75, 36, .5); }
.cta h2 { font: 900 clamp(32px, 6.4vw, 92px)/1.1 var(--display); margin: 0 0 30px; letter-spacing: -.01em; }
.footer { margin-top: clamp(60px, 8vw, 110px); border-top: 1px solid var(--line); overflow: hidden; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: 12.5px; color: var(--mut); }
.foot-word { font: 900 clamp(80px, 23.5vw, 360px)/.86 var(--display); text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 238, 214, .16); user-select: none; margin-bottom: -.12em; letter-spacing: -.02em; }

.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ================= studio ================= */
.studio.wrap { max-width: 1480px; }
.studio { display: grid; grid-template-columns: minmax(360px, 432px) minmax(0, 1fr); gap: 16px; padding-top: 16px; padding-bottom: 60px; align-items: start; }
.rail { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-lg); position: sticky; top: 80px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; overflow: hidden; }
.rail-scroll { overflow: auto; padding: 22px; flex: 1; scrollbar-width: thin; scrollbar-color: var(--bg3) transparent; }
.rail-foot { padding: 14px 22px 16px; border-top: 1px solid var(--line); background: var(--bg1); }
.submit-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--mut); margin-top: 10px; }
.submit-meta b { color: var(--tx); font: 500 12.5px var(--mono); }
.rsec + .rsec { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.sec-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.sec-h .idx { font: 500 11px var(--mono); color: var(--accent2); letter-spacing: .1em; }
.sec-h h2 { font: 900 19px/1.2 var(--display); margin: 0; }
.sec-h .hint { margin-left: auto; font-size: 12px; color: var(--mut); }
.low-credit { display: flex; gap: 14px; align-items: center; background: rgba(255, 75, 36, .1); border: 1px solid rgba(255, 75, 36, .35); padding: 12px 14px; border-radius: 14px; margin-bottom: 20px; font-size: 13px; color: var(--tx2); }
.low-credit b { color: var(--tx); }

.drop { display: block; border: 1px dashed var(--line2); border-radius: 14px; padding: 26px 16px; text-align: center; cursor: pointer; background: var(--bg2); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--beam); background: rgba(255, 217, 168, .06); }
.drop .up { width: 46px; height: 46px; border-radius: 50%; background: var(--tx); color: #14110D; display: grid; place-items: center; margin: 0 auto 12px; font-size: 18px; transition: transform .25s var(--ease), background .2s; }
.drop:hover .up { transform: translateY(-3px); background: var(--beam); }
.drop b { display: block; font-size: 14.5px; }
.drop small { color: var(--mut); font-size: 12.5px; }
.drop input { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #fff; animation: pop .25s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb .x { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(12, 11, 10, .8); color: #fff; display: grid; place-items: center; font-size: 12px; padding: 0; }
.thumb .main-tag, .thumb .set-main { position: absolute; left: 5px; bottom: 5px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 0; }
.thumb .main-tag { background: var(--accent); color: #fff; }
.thumb .set-main { background: rgba(12, 11, 10, .8); color: #fff; opacity: 0; transition: opacity .15s; }
.thumb:hover .set-main, .thumb .set-main:focus-visible { opacity: 1; }
.thumb.add { display: grid; place-items: center; background: var(--bg2); border: 1px dashed var(--line2); cursor: pointer; color: var(--mut); font-size: 20px; }
.thumb.add:hover { border-color: var(--beam); color: var(--beam); }

.hints { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 20px; }
.sgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.sopt { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 0; padding: 0; background: var(--bg2); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s, transform .15s var(--ease); }
.sopt img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.82); transition: filter .2s, transform .5s var(--ease); }
.sopt:hover img { filter: none; transform: scale(1.06); }
.sopt span { position: absolute; inset: auto 0 0 0; padding: 18px 2px 6px; font-size: 11.5px; font-weight: 600; color: #fff; text-align: center; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.sopt.on { outline-color: var(--accent); }
.sopt.on img { filter: none; }
.sopt.on::after { content: ""; position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat; }
.sopt .auto-bg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; color: var(--beam); background: radial-gradient(circle at 50% 42%, rgba(255, 170, 100, .5), rgba(255, 75, 36, .18) 42%, transparent 70%), var(--bg3); }
.rgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.ropt { border: 1px solid var(--line); border-radius: 10px; padding: 12px 4px 9px; display: flex; flex-direction: column; align-items: center; gap: 8px; background: transparent; font-size: 12px; font-weight: 600; color: var(--tx2); transition: all .15s; }
.ropt i { display: block; border: 1.5px solid currentColor; border-radius: 2px; }
.ropt .shape { height: 30px; display: grid; place-items: center; }
.ropt small { font: 400 10px var(--mono); color: var(--mut); letter-spacing: .02em; }
.ropt:hover { border-color: var(--line2); color: var(--tx); }
.ropt.on { background: var(--tx); border-color: var(--tx); color: #14110D; }
.ropt.on small { color: rgba(20, 17, 13, .6); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.switch-row b { font-size: 14px; }
.switch-row small { display: block; color: var(--mut); font-size: 12px; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--bg3); transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--tx); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + span { outline: 2px solid var(--beam); outline-offset: 2px; }

/* the stage */
.stage { background: #070706; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stage-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.stage-head h2 { font: 600 14px/1.4 var(--sans); margin: 0; display: flex; gap: 10px; align-items: center; min-width: 0; }
.stage-head h2 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-head h2::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mut); flex: none; }
.stage.live .stage-head h2::before { background: var(--accent); box-shadow: 0 0 10px 2px rgba(255, 75, 36, .8); animation: blink 1.2s ease-in-out infinite; }
.stage.done .stage-head h2::before { background: var(--ok); }
@keyframes blink { 50% { opacity: .3; } }
.stage-meta { font: 400 11.5px var(--mono); color: var(--mut); letter-spacing: .04em; white-space: nowrap; }
.stage-body { --fh: min(58vh, 600px); min-height: min(76vh, 780px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 38px 28px 30px; background: radial-gradient(rgba(255, 238, 214, .07) 1px, transparent 1px) 0 0 / 22px 22px; }
.frame { position: relative; width: min(100%, calc(var(--fh) * var(--arn))); aspect-ratio: var(--ar); transition: width .45s var(--ease); }
.frame-empty { border: 1px dashed var(--line2); border-radius: 3px; display: grid; place-items: center; text-align: center; padding: 20px; }
.fe-in { max-width: 280px; }
.fe-in .mark { width: 44px; height: 44px; margin: 0 auto 16px; opacity: .9; }
.fe-in h3 { font: 900 20px/1.3 var(--display); margin: 0 0 6px; }
.fe-in p { color: var(--mut); margin: 0; font-size: 13px; }
.fe-size { position: absolute; left: 0; right: 0; bottom: 12px; font: 400 10.5px var(--mono); letter-spacing: .12em; color: var(--mut); }

.dev { overflow: hidden; border-radius: 3px; background: #000; }
.dev-src { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(30px) saturate(.5) brightness(.5); transform: scale(1.3); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { filter: blur(22px) saturate(.9) brightness(.7); transform: scale(1.22); } }
.dev-sweep { position: absolute; left: 0; right: 0; top: 0; height: 40%; background: linear-gradient(to bottom, transparent, rgba(255, 217, 168, .16) 70%, rgba(255, 217, 168, .5) 99%, transparent); animation: sweep 2.8s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes sweep { from { transform: translateY(-110%); } to { transform: translateY(260%); } }
.dev-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 24px 8px rgba(255, 170, 100, .9); margin-bottom: 40px; }
.pulse::before, .pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255, 217, 168, .7); animation: ring 2.4s ease-out infinite; }
.pulse::after { animation-delay: 1.2s; }
@keyframes ring { to { transform: scale(4.2); opacity: 0; } }
.dev-c h3 { font: 900 22px/1.3 var(--display); margin: 0 0 6px; text-shadow: 0 2px 20px #000; }
.dev-c p { color: rgba(255, 255, 255, .78); margin: 0; font-size: 13px; min-height: 1.65em; transition: opacity .3s; text-shadow: 0 1px 12px #000; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: min(100%, 460px); }
.timeline div { font-size: 12px; color: var(--mut); padding-top: 9px; border-top: 2px solid var(--line); transition: all .3s; }
.timeline div b { display: block; font: 400 10px var(--mono); letter-spacing: .1em; margin-bottom: 2px; }
.timeline div.done { border-color: var(--tx2); color: var(--tx2); }
.timeline div.cur { border-color: var(--accent); color: var(--tx); }
.elapsed { font: 400 11.5px var(--mono); color: var(--mut); letter-spacing: .03em; text-align: center; }

.stage-body { container-type: inline-size; }
.result { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.r-side { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
@container (min-width: 720px) {
  .result.side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 300px); gap: 34px; align-items: center; }
  .result.side .frame { justify-self: end; }
  .result.side .r-side { align-items: stretch; }
  .result.side .result-actions { flex-direction: column; }
  .result.side .result-actions .btn { width: 100%; }
}
.art { animation: develop 1.5s var(--ease) both; }
.art img { width: 100%; height: 100%; object-fit: contain; border-radius: 2px; box-shadow: 0 30px 90px -10px #000; cursor: zoom-in; background: var(--bg2); }
@keyframes develop { from { filter: blur(22px) brightness(.35) saturate(.2); transform: scale(.985); } }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.note { width: min(100%, 560px); background: var(--bg1); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 13.5px; color: var(--tx2); }
.note .k { font: 500 10px var(--mono); letter-spacing: .16em; color: var(--mut); margin-bottom: 6px; }
.note .copy { font: 900 18px/1.4 var(--display); color: var(--tx); margin-top: 8px; }
.note .sub { color: var(--mut); font-size: 12.5px; }
.fail { text-align: center; max-width: 360px; }
.fail .ico { width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 122, 102, .12); color: var(--err); display: grid; place-items: center; font-size: 24px; margin: 0 auto 16px; }
.fail h3 { font: 900 22px var(--display); margin: 0 0 8px; }
.fail p { color: var(--mut); margin: 0 0 18px; }

.recent { margin-top: 14px; }
.recent-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; padding: 0 2px; }
.recent-head h3 { margin: 0; font: 500 10.5px var(--mono); letter-spacing: .16em; color: var(--mut); }
.recent-head a { font-size: 12.5px; color: var(--mut); text-decoration: none; }
.recent-head a:hover { color: var(--tx); }
.recent-strip { display: flex; gap: 8px; overflow-x: auto; padding: 3px 3px 8px; scrollbar-width: thin; scrollbar-color: var(--bg3) transparent; }
.recent-item { flex: none; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; border: 0; background: var(--bg2); position: relative; padding: 0; outline: 2px solid transparent; outline-offset: 1px; transition: transform .15s var(--ease), outline-color .15s; }
.recent-item:hover { transform: translateY(-2px); }
.recent-item.on { outline-color: var(--tx); }
.recent-item img { width: 100%; height: 100%; object-fit: cover; }
.recent-item .st { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; color: var(--mut); }

/* ================= works ================= */
.masonry { columns: 4 240px; column-gap: 12px; padding-bottom: 60px; }
.work { break-inside: avoid; margin-bottom: 12px; background: var(--bg1); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .2s, transform .25s var(--ease); }
.work:hover { border-color: var(--line2); transform: translateY(-3px); }
.w-img { background: var(--bg2); cursor: zoom-in; position: relative; overflow: hidden; }
.w-img img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.work:hover .w-img img { transform: scale(1.03); }
.w-img .ph { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--mut); font-size: 12.5px; gap: 10px; cursor: default; padding: 16px; text-align: center; }
.w-bar { padding: 11px 12px 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.w-bar b { font-weight: 600; font-size: 13.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-bar small { color: var(--mut); font: 400 11px var(--mono); }
.w-bar .acts { display: flex; gap: 4px; flex: none; }
.w-bar .icon-btn { width: 30px; height: 30px; font-size: 13px; }
.empty-big { text-align: center; padding: 90px 20px; border: 1px dashed var(--line2); border-radius: var(--r-lg); margin-bottom: 60px; }
.empty-big .mark { width: 52px; height: 52px; margin: 0 auto; }
.empty-big h3 { font: 900 26px var(--display); margin: 20px 0 8px; }
.empty-big p { color: var(--mut); margin: 0 0 24px; }

/* ================= account & admin ================= */
.acct { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; padding-bottom: 60px; align-items: start; }
.acct-col { display: flex; flex-direction: column; gap: 12px; }
.balance { position: relative; overflow: hidden; padding: 30px; background: var(--tx); color: #14110D; border-radius: var(--r-lg); }
.balance .k { font: 500 10.5px var(--mono); letter-spacing: .18em; opacity: .55; }
.balance .v { font: 900 clamp(84px, 10vw, 128px)/.95 var(--display); letter-spacing: -.03em; margin: 12px 0 14px; }
.balance .v small { font: 900 20px var(--display); letter-spacing: 0; margin-left: 8px; }
.balance p { margin: 0; opacity: .75; font-size: 14px; }
.balance::after { content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0 18%, rgba(255, 75, 36, .35) 19% 40%, rgba(255, 75, 36, .12) 41% 68%, transparent 69%); }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 20px; }
.stat { padding: 18px; background: var(--bg1); border: 1px solid var(--line); border-radius: 16px; }
.stat .k { font-size: 12px; color: var(--mut); }
.stat .v { font: 900 34px/1.2 var(--display); margin-top: 6px; }
.stat .v small { font: 400 14px var(--mono); color: var(--mut); }
.admin-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.search { position: relative; }
.search .input { padding-left: 38px; width: 280px; height: 40px; border-radius: 999px; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mut); }
.row-click { cursor: pointer; }
.row-click:hover td { background: var(--bg2); }
.user-cell b { display: block; }
.user-cell small { color: var(--mut); }
.thumb-sm { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--bg2); }
.thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumb-grid > * { width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; object-fit: cover; background: var(--bg2); display: grid; place-items: center; font-size: 11px; color: var(--mut); }

/* ================= responsive ================= */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .studio { grid-template-columns: 1fr; }
  .rail { position: static; max-height: none; overflow: visible; }
  .rail-scroll { overflow: visible; }
  .rail-foot { position: sticky; bottom: 0; z-index: 5; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .stage-body { min-height: 0; --fh: min(60vh, 520px); }
}
@media (max-width: 860px) {
  .hero-top { grid-template-columns: 1fr; }
  .bench { aspect-ratio: 1.5; --px: 32.7%; }
  .b-obj { width: 26%; }
  .rays .rd { display: none; }
  .rays .rm { display: block; }
  .b-cap { font-size: 9px; letter-spacing: .06em; }
  .cap-hole, .b-tag { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 22px 0 22px; border-left: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; padding-bottom: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .pricing, .acct { grid-template-columns: 1fr; }
  .ticket { grid-template-columns: 1fr 56px; min-height: 0; }
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lightbox aside { max-height: 46vh; border-left: 0; border-top: 1px solid var(--line); }
  .lightbox .lb-img { padding: 56px 14px 14px; }
  .lightbox .lb-img img { max-height: calc(54vh - 70px); }
  .brand-tag { display: none; }
  .modal-auth { grid-template-columns: 1fr; }
  .auth-vis { display: none; }
}
@media (max-width: 680px) {
  .topbar { gap: 0; flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 0; row-gap: 4px; }
  .topbar:has(.nav:empty) { padding-bottom: 12px; }
  .nav { order: 3; width: 100%; gap: 22px; height: 40px; overflow-x: auto; }
  .nav:empty { display: none; }
  .facts { gap: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .search, .search .input { width: 100%; }
  .masonry { columns: 2 150px; column-gap: 8px; }
  .work { margin-bottom: 8px; }
  .w-bar { padding: 9px 8px 10px 10px; }
  .w-bar .icon-btn { width: 28px; height: 28px; }
  .stage-body { padding: 28px 18px 24px; }
  .auth-main { padding: 30px 22px 24px; }
  .modal { padding: 28px 22px; }
  .menu { top: 56px; }
  .foot-row { flex-direction: column; gap: 4px; }
}
@media (hover: none) {
  .thumb .set-main { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .film-track { animation: none; }
}
