:root{--coal:#141310;--panel:#1d1c18;--raised:#27251f;--brass:#b7965c;--gold:#ddbd7a;--paper:#e9e0cf;--dim:#b4aa97;--line:#5a5140;color:var(--paper);background:var(--coal);font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif;font-synthesis:none;color-scheme:dark}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:92px}body{margin:0;font-size:15px;line-height:1.85}button,a,summary,input{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default}img{display:block;max-width:100%}figure,p{margin:0}h1,h2,h3,h4{margin:0;line-height:1.5}h2{font-size:clamp(27px,3vw,40px);font-weight:600}h3{font-size:20px;font-weight:500}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,[role=tabpanel]:focus-visible{outline:2px solid var(--gold);outline-offset:4px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.kicker{font-size:12px;color:var(--brass);margin-bottom:10px}.ownership{font-size:11px;color:var(--brass)}
/* Original 5×5 button states form a nine-slice frame. */
.button,.small-control,.topbar a,.art-tabs button,summary,.media-controls button{border:4px solid transparent;border-image:url('assets/nightveil/ui/ui_button_normal.png') 2 fill / 4px / 0 stretch;background:#1a1814;color:var(--paper);padding:9px 17px;line-height:1.6;image-rendering:pixelated;box-shadow:0 2px 0 #080807}.button:hover,.small-control:hover,.topbar a:hover,.art-tabs button:hover,summary:hover:hover,.media-controls button:hover{border-image-source:url('assets/nightveil/ui/ui_button_hover.png');color:var(--gold)}.button:active,.small-control:active,.art-tabs button:active:active,.media-controls button:active{border-image-source:url('assets/nightveil/ui/ui_button_pressed.png');box-shadow:none;translate:0 1px}.button{display:inline-flex;gap:20px;align-items:center}.button.primary{color:var(--gold)}
.topbar{height:68px;position:sticky;top:0;z-index:20;background:#141310f5;border-bottom:1px solid #5a5140;display:flex;justify-content:space-between;align-items:center;padding:0 4%;gap:20px;box-shadow:0 5px 20px #0006}.topbar a{font-size:12px;padding:6px 12px}.topbar .brand{border:0;background:none;box-shadow:none;font-family:Georgia,serif;font-size:16px;letter-spacing:.06em}.topbar nav{display:flex;gap:9px}
.title-hero{background:#030403;min-height:calc(100svh - 68px);display:flex;flex-direction:column;justify-content:center;position:relative}.title-stage{position:relative;width:min(100%,calc((100svh - 124px)*1916/1076));margin:auto;aspect-ratio:1916/1076}.title-poster,#title-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}#title-video{visibility:hidden}#title-video.ready{visibility:visible}.title-stage:after{content:"";position:absolute;inset:0;background:#050503;opacity:0;pointer-events:none;transition:opacity .32s}.title-hero.entering .title-stage:after{opacity:.42}.title-enter{position:absolute;z-index:2;left:50%;top:57%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:20px;min-width:230px;height:54px;padding:6px 24px;background:#16150ff5;border-block:1px solid #8d7449;color:#d9cbaa;box-shadow:0 0 0 3px #080807d9;transition:color .1s,background .1s,border-color .1s}.title-enter:before{content:"◆";font-size:9px;color:#b88f45}.title-enter:hover,.title-enter:focus-visible{border-color:var(--gold);color:#ffe3a2;background:#262116}.title-enter:active,.entering .title-enter{background:#655031;color:#fff1cb;border-color:#ffe0a0;box-shadow:inset 0 3px 0 #0008}.title-foot{display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 4%;font-size:11px;color:var(--dim)}.title-foot>span{margin-right:auto}.small-control{font-size:11px;padding:3px 12px}
.personal-art{position:relative;padding:58px max(5%,calc((100vw - 1320px)/2)) 45px;background:linear-gradient(#11110fed,#171613f5),url('assets/nightveil/floor.png') repeat;background-size:auto,128px;scroll-margin-top:0}.art-header{margin-bottom:28px}.art-header>p:last-child{color:var(--dim);margin-top:10px}.art-tabs{display:flex;gap:8px;border-bottom:2px solid #746349;margin-bottom:0}.art-tabs button{padding:13px 28px;font-size:15px;flex:0 1 220px;border-image:url('assets/nightveil/ui/ui_tab_page_normal.png') 3 fill / 6px / 0 stretch;background:#23211c}.art-tabs button[aria-selected=true]{border-image-source:url('assets/nightveil/ui/ui_tab_page_active.png');color:#f0d59e;background:#363125;box-shadow:inset 0 -3px #b7965c}.tab-mark{font-size:8px;margin-right:12px;opacity:.25}.art-tabs button[aria-selected=true] .tab-mark{opacity:1;color:var(--gold)}[role=tabpanel]{padding:25px;background:#181713;border:1px solid #504838;border-top:0;min-height:560px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.panel-heading h3{font-size:17px}.panel-heading span{font-size:11px;color:var(--dim)}.featured-grid{display:grid;grid-template-columns:1.7fr 1fr 1fr;gap:18px}.featured-work{background:#24231e;border:1px solid #3b372d;display:flex;flex-direction:column;min-width:0}.featured-work button{background:none;border:0;display:flex;align-items:center;justify-content:center;flex:1;min-height:145px;padding:20px;width:100%}.featured-work button:hover{background:#b7965c0b}.featured-work img{width:calc(var(--sprite-width)*3);max-width:100%;height:auto;max-height:230px;object-fit:contain;image-rendering:pixelated}.featured-main{grid-row:span 2}.featured-main button{min-height:320px}.featured-main img{width:calc(var(--sprite-width)*3);max-height:440px}.featured-work figcaption{padding:12px 16px 16px;background:#1e1d19;border-top:1px solid #39352b}.featured-work h3{font-size:15px;color:#e4d5b7}.featured-work p{font-size:12px;line-height:1.8;color:var(--dim);margin-top:5px}#panel-underground .featured-main img{width:128px}.all-works{margin-top:20px}.all-works summary,.process-evidence summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:13px;list-style:none}.all-works summary::-webkit-details-marker,.process-evidence summary::-webkit-details-marker{display:none}.all-works[open] summary span,.process-evidence[open] summary span{rotate:45deg}.all-content{padding:14px 18px;background:#161612;border:1px solid #38342b}.sheet-group{margin:25px 0}.sheet-group h3{font-size:13px;color:#c6b58f;padding-bottom:10px;border-bottom:1px solid #4b4333;margin-bottom:18px}.sheet-row{display:flex;flex-wrap:wrap;gap:24px 20px;align-items:end}.sheet-item{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:50px;max-width:100%;background:none;border:0;padding:5px}.sheet-item img{width:calc(var(--w)*2px);max-width:100%;height:auto;image-rendering:pixelated}.sheet-item span{font-size:11px;color:var(--dim)}.sheet-item:hover{background:#b7965c15}.provided-scene{margin-top:25px}.provided-scene img{width:100%;aspect-ratio:1280/710;object-fit:cover;object-position:bottom}.provided-scene figcaption{font-size:11px;color:var(--dim);margin-top:8px}.learning-note{border-top:1px solid #544a38;margin-top:35px;padding-top:27px;display:grid;grid-template-columns:1fr 1fr;gap:35px}.learning-note h3{font-size:19px}.learning-note p{font-size:13px;color:var(--dim);margin-top:9px}.learning-note .kicker{color:var(--brass);margin:0 0 7px}.process-details{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:20px 0}.process-details button{border:0;background:#24231d;width:100%;padding:12px}.process-details img{image-rendering:pixelated;width:100%}.process-details figcaption{font-size:11px;color:var(--dim);margin-top:8px}.process-evidence .button{font-size:12px}
.design-section,.video-section,.credits-section{padding:55px max(5%,calc((100vw - 1320px)/2));background:#171612;border-top:1px solid #443c2e}.video-section{background:#11110f}.section-intro{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;margin-bottom:35px}.section-intro>p{font-size:14px;color:var(--dim)}.choice{padding:25px 0 40px;border-top:1px solid #49402f}.choice-copy h3{font-size:27px;margin:10px 0 17px}.choice-copy p{color:var(--dim);font-size:14px}.exploration{display:grid;grid-template-columns:1fr 1fr;gap:28px}.exploration .choice-copy{grid-column:1/-1;max-width:900px}.secondary-copy{margin-top:10px}.clip-frame{margin:0;border:5px solid #302a20;outline:1px solid #6e6047;background:#0a0a08}.clip-frame>button,#play-video{position:relative;display:block;width:100%;padding:0;border:0;background:#090908}.clip-frame img,.clip-frame video,.video-shell img,.video-shell video{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#080807}.clip-frame img{image-rendering:pixelated}.clip-label,.play-label{position:absolute;bottom:18px;left:18px;border:1px solid #9e875c;background:#17150fee;padding:10px 20px;color:#ead29f;text-align:left;font-size:14px;box-shadow:0 0 0 3px #090907}.clip-label small,.play-label small{display:block;font-size:10px;color:#bfb399;margin-top:3px}.media-caption{font-size:12px;color:var(--dim);margin-top:11px}.guard-main{display:grid;grid-template-columns:3fr 1fr;gap:30px;margin:26px 0}.guard-notes{display:grid;gap:20px;align-content:center}.guard-notes h4{color:#d3b47a;font-weight:500;margin-bottom:7px}.guard-notes p{font-size:13px;color:var(--dim)}.guard-sequence{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.guard-sequence img{width:100%;image-rendering:pixelated}.guard-sequence figcaption{font-size:11px;color:var(--dim);margin-top:8px}.video-shell{border:5px solid #302a20;outline:1px solid #6e6047}.video-status{font-size:12px;color:var(--dim);margin-top:12px}.download-row{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:28px}.download-row p{font-size:14px}.download-row small{font-size:11px;color:var(--dim)}.media-controls{display:flex;align-items:center;gap:10px;padding:10px;background:#181712;flex-wrap:wrap}.media-controls button{font-size:12px;padding:5px 12px;min-height:38px}.media-controls input{accent-color:#b7965c;flex:1;min-width:70px;cursor:pointer}.media-time{font-size:11px;color:var(--dim);font-variant-numeric:tabular-nums}.media-error{font-size:12px;padding:10px;color:#e8c586}.credit-name{font-size:22px;color:#dbc492;margin:20px 0}.credits-section dl{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;margin:25px 0}.credits-section dt{font-size:15px}.credits-section dd{font-size:12px;color:var(--dim);margin:5px 0 0}.text-link{font-size:12px;color:#cbb78d;border-bottom:1px solid #6a5d43}footer{padding:27px 5%;display:flex;justify-content:space-between;gap:20px;border-top:1px solid #49402f;font-size:12px;color:var(--dim);background:#11110f}dialog{width:min(900px,92vw);max-height:90svh;padding:22px;border:6px solid #453c2c;outline:1px solid #c1a36f;background:#181712;color:var(--paper);box-shadow:0 0 0 4px #090908,0 20px 90px #000;overflow:auto}dialog::backdrop{background:#050504dc}.viewer-top{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #66563d;padding-bottom:15px}.viewer-top h2{font-size:20px}.viewer-top button{font-size:12px;white-space:nowrap}.viewer-canvas{display:flex;align-items:center;justify-content:center;min-height:260px;padding:28px 10px;background:#24231f;margin-top:18px}.viewer-canvas img{image-rendering:pixelated;max-width:100%;height:auto;max-height:60svh;object-fit:contain}#viewer-note{font-size:12px;color:var(--dim);margin-top:15px}
@media(max-width:850px){html{scroll-padding-top:112px}.topbar{height:auto;min-height:96px;padding:9px 5%;gap:7px;flex-wrap:wrap}.topbar .brand{margin-left:auto}.topbar nav{flex-basis:100%;justify-content:center;gap:6px}.topbar a{padding:4px 10px;font-size:11px}.topbar nav a{flex:1;text-align:center}.title-hero{min-height:calc(60svh - 96px)}.title-stage{width:100%;margin:auto 0}.title-enter{min-width:145px;height:36px;font-size:12px;gap:10px;padding:4px 10px}.title-foot{padding:15px 5%;gap:8px;flex-wrap:wrap}.title-foot>span{flex-basis:100%;font-size:10px}.small-control{font-size:10px}.personal-art{padding:32px 5%}.art-header{margin-bottom:20px}.art-header>p:last-child{font-size:13px}.art-tabs{gap:4px}.art-tabs button{padding:12px 5px;font-size:12px;flex:1}.tab-mark{margin-right:5px;font-size:6px}[role=tabpanel]{padding:14px;min-height:0}.panel-heading{align-items:start;gap:5px;flex-direction:column;margin-bottom:16px}.panel-heading h3{font-size:15px}.panel-heading span{font-size:10px}.featured-grid{grid-template-columns:1fr 1fr;gap:12px}.featured-main{grid-column:1/-1;grid-row:auto}.featured-main button{min-height:240px}.featured-main img{max-height:260px;width:calc(var(--sprite-width)*2)}.featured-work button{min-height:110px;padding:15px}.featured-work img{max-height:150px;width:calc(var(--sprite-width)*2)}.featured-work figcaption{padding:10px}.featured-work h3{font-size:13px}.featured-work p{font-size:11px}.learning-note{grid-template-columns:1fr;gap:20px}.all-works summary{font-size:12px;padding:9px}.all-content{padding:7px}.sheet-row{gap:18px 12px}.sheet-item img{width:calc(var(--w)*1.5px)}.sheet-item span{font-size:10px}.design-section,.video-section,.credits-section{padding:36px 5%}.section-intro{display:block;margin-bottom:25px}.section-intro>p{margin-top:15px;font-size:13px}.exploration{display:block}.exploration-media,.exploration-night{margin-top:23px}.choice-copy h3{font-size:23px}.choice-copy p{font-size:13px}.guard-main{display:block}.guard-notes{grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.guard-notes h4{font-size:14px}.guard-notes p{font-size:11px}.guard-sequence{gap:10px;grid-template-columns:1fr}.guard-sequence figure{display:grid;grid-template-columns:2fr 1fr;gap:12px;align-items:center}.clip-label,.play-label{font-size:12px;padding:7px 12px;left:10px;bottom:10px}.download-row{align-items:start}.download-row .button{font-size:12px;padding:9px 12px}.media-controls{gap:6px;padding:7px}.media-controls button{font-size:11px;padding:4px 8px}.media-controls input{flex-basis:45%}.media-time{font-size:10px}.credits-section dl{grid-template-columns:1fr 1fr;gap:20px}.credit-name{font-size:19px}footer{flex-wrap:wrap;gap:14px;font-size:11px}.viewer-top h2{font-size:16px}dialog{padding:14px}.viewer-canvas{min-height:200px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}#title-video{visibility:hidden!important}}
.title-enter{background:#16150f}.topbar{background:#141310}.art-tabs button{border-image-source:url('assets/nightveil/ui/ui_tab_source_normal.png');border-image-slice:2}.art-tabs button:hover{border-image-source:url('assets/nightveil/ui/ui_tab_source_hover.png')}.art-tabs button[aria-selected=true]{border-image-source:url('assets/nightveil/ui/ui_tab_source_active.png');box-shadow:inset 0 -3px #c4a366;color:#ffe0a0}.featured-work button{height:150px;min-height:0;flex:none}.featured-work img{max-height:125px}.featured-main button{flex:1;height:auto;min-height:300px}.featured-main img{max-height:350px}.featured-grid{grid-template-columns:1.7fr 1fr 1fr}.featured-work figcaption{flex:0 0 auto}
@media(max-width:850px){.featured-grid{grid-template-columns:1fr 1fr}.featured-main button{height:220px;min-height:220px}.featured-main img{max-height:210px}.featured-work:not(.featured-main) button{height:130px}.featured-work:not(.featured-main) img{max-height:110px}}
/* Brass inventory frames: dark inner lip, worn highlight and inset corner studs. */
:is(.button,.small-control,.topbar a:not(.brand),.art-tabs button,summary,.media-controls button){position:relative;border:2px solid #796343;border-image:none!important;background:linear-gradient(180deg,#30271d 0,#211a13 6px,#17120e 100%);color:#d9c9a6;box-shadow:inset 0 0 0 1px #13100c,inset 0 0 0 3px #413423,0 0 0 1px #080705,0 2px 0 #080705;text-shadow:0 1px #050403}
:is(.button,.small-control,.topbar a:not(.brand),.art-tabs button,summary,.media-controls button):before{content:"";position:absolute;left:3px;top:3px;width:3px;height:3px;background:#a68b5c;box-shadow:0 1px #362819;pointer-events:none}
:is(.button,.small-control,.topbar a:not(.brand),.art-tabs button,summary,.media-controls button):after{content:"";position:absolute;right:3px;bottom:3px;width:3px;height:3px;background:#79613d;pointer-events:none}
:is(.button,.small-control,.topbar a:not(.brand),.art-tabs button,summary,.media-controls button):hover{border-color:#b49965;background:linear-gradient(#3a2e1f,#241b12);color:#f1d59c;box-shadow:inset 0 0 0 1px #17110c,inset 0 0 0 3px #624b2d,0 0 0 1px #080705}
:is(.button,.small-control,.topbar a:not(.brand),.art-tabs button,.media-controls button):active{background:#120e0a;border-color:#8b7147;box-shadow:inset 0 3px 0 #080604,inset 0 0 0 3px #322618}
.art-tabs{border-bottom:2px solid #9b7d4c;gap:7px}.art-tabs button{border-bottom:0;padding:12px 25px;background:linear-gradient(#2a2119,#19130f);color:#b8a88b;box-shadow:inset 0 0 0 1px #0b0806,inset 0 0 0 3px #3f3020}.art-tabs button[aria-selected=true]{border-color:#c1a16b;background:linear-gradient(#4c3b26,#2e2318);color:#f5d99e;box-shadow:inset 0 0 0 1px #1c140c,inset 0 0 0 3px #80613b,inset 0 -3px #d0ac69}.art-tabs button[aria-selected=true] .tab-mark{color:#f3cc77;text-shadow:0 0 6px #bb7c32}.art-tabs button:hover{color:#f1d59c}
[role=tabpanel]{background:#1b1611;border-color:#75603e;box-shadow:inset 0 0 0 3px #100d09,inset 0 0 0 4px #3d3020;min-height:0}.featured-work{background:#29231a;border-color:#4f402b;box-shadow:inset 0 0 0 1px #17120d}.featured-work figcaption{background:#201a13;border-color:#473823}.all-content,.media-controls{background:#1b150f;border-color:#58452c}.viewer-canvas{background:#292219}dialog{background:#1c1610;border-color:#715735;outline-color:#b29768}.topbar{background:#17120e;border-color:#765d39}.title-enter{border-color:#a28550;background:#1d160f;box-shadow:0 0 0 2px #090705,inset 0 0 0 2px #493720}.title-enter:hover,.title-enter:focus-visible{background:#342719;border-color:#d3b071}.title-enter:active,.entering .title-enter{background:#644b2b}
.featured-grid{grid-template-columns:1.3fr 1fr 1fr;gap:14px}.featured-work button{height:108px;padding:14px}.featured-work img{width:calc(var(--sprite-width)*2);max-height:90px}.featured-main button{min-height:220px;height:auto}.featured-main img{width:calc(var(--sprite-width)*2);max-height:280px}.featured-work figcaption{padding:10px 14px 12px}.featured-work h3{font-size:14px}.featured-work p{font-size:11px}.sheet-item img{width:calc(var(--w)*1px)}#panel-underground .featured-main img{width:64px}.sheet-row{gap:20px 24px}
@media(max-width:850px){.art-tabs{gap:4px}.art-tabs button{padding:11px 5px;font-size:12px}.featured-grid{grid-template-columns:1fr 1fr;gap:10px}.featured-main button{height:155px;min-height:155px}.featured-main img{width:calc(var(--sprite-width)*1);max-height:145px}.featured-work:not(.featured-main) button{height:96px}.featured-work:not(.featured-main) img{width:calc(var(--sprite-width)*1);max-height:80px}.featured-work figcaption{padding:8px 10px}.featured-work h3{font-size:12px}.sheet-item img{width:calc(var(--w)*1px)}}
.art-tabs [role="tab"][aria-selected="true"]{background:linear-gradient(#493620,#2c2013);border-color:#c4a064;color:#ffe0a0;box-shadow:inset 0 0 0 1px #1a1108,inset 0 0 0 3px #785931,inset 0 -3px #d0aa64}.art-tabs [role="tab"][aria-selected="true"]:hover{background:linear-gradient(#544027,#332516)}

