/* Works selection — quiet game UI, with no invented artwork or projects. */
.works-panel.hud-panel{--hud-ink:#171a1c;--hud-muted:#7b8188;--hud-line:#d9dde1;right:3%;top:max(76px,11dvh);bottom:5dvh;width:55%;max-width:1000px;padding:18px;color:var(--hud-ink);border:1px solid #e0e3e7;background:#fafbfdF2;border-radius:3px;box-shadow:0 4px 32px #25304404;backdrop-filter:none;display:flex;flex-direction:column;gap:14px;scrollbar-width:thin;transition:opacity .22s ease,transform .26s ease;transform:translateX(12px)}
.works-panel.hud-panel.open{transform:none}
.hud-panel [hidden],.hud-readout[hidden],#hud-connector[hidden]{display:none!important}
.hud-panel:focus{outline:none}
.hud-panel button{color:inherit}
.hud-panel .work-hero,.hud-panel .work-tile{padding:0}
.hud-panel button:focus-visible{outline:2px solid #2454cf;outline-offset:3px}
.hud-panel button:disabled{cursor:default}
.hud-topline{display:flex;align-items:center;gap:12px;flex-shrink:0;min-height:28px}
.hud-archive,.hud-counter,.hud-panel kbd,.work-number,.tile-number,.work-state,.work-year,.hud-footer,.hud-readout{font-family:'SFMono-Regular',Consolas,'Liberation Mono',monospace}
.hud-archive{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:10px;letter-spacing:.04em;color:var(--hud-muted)}
.hud-archive:before{content:'';width:7px;height:7px;background:#171a1c}
.hud-rule{height:1px;background:var(--hud-line);flex:1;min-width:10px;position:relative}
.hud-rule:after{content:'';position:absolute;right:0;top:-4px;width:18px;height:9px;border-left:1px solid #a6aeb5;border-right:1px solid #a6aeb5;background:repeating-linear-gradient(90deg,transparent 0 7px,#a6aeb5 7px 8px)}
.hud-counter{display:flex;gap:9px;align-items:center;font-size:13px;white-space:nowrap;letter-spacing:.04em;padding:0 6px}
.hud-counter span:not(:first-child){color:var(--hud-muted)}
.hud-nav{display:flex;gap:6px}
.hud-nav button{height:28px;width:30px;border:1px solid #c6ccd2;border-radius:2px;display:grid;place-items:center;transition:background .15s}
.hud-nav button:not(:disabled):hover{background:#171a1c;color:#fff;border-color:#171a1c}
.hud-nav button:disabled{opacity:.32}
.hud-nav svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}
.hud-panel #close-panel{color:#30363c;width:32px;height:28px;margin:0 0 0 3px;padding:4px;border-left:1px solid var(--hud-line);font:24px/1 sans-serif}
.hud-heading{display:flex;align-items:center;gap:15px;flex-shrink:0;padding:0 2px}
.works-panel.hud-panel h2{margin:0;font-size:clamp(24px,2.5vw,39px);font-weight:750;letter-spacing:-.04em;line-height:1.25;white-space:nowrap}
.hud-heading #panel-en{font:11px/1.6 'SFMono-Regular',Consolas,monospace;letter-spacing:.13em;color:var(--hud-muted);border-left:1px solid #aab0b7;padding-left:15px}
.hud-feature{display:flex;flex-direction:column;min-height:185px;flex:1 0 210px}
.work-hero{position:relative;display:block;flex:1;min-height:150px;width:100%;overflow:hidden;text-align:left;background:#eff1f3;border:1px solid #d8dde1;border-radius:2px}
.work-hero:before,.work-hero:after{position:absolute;content:'';z-index:2;top:11px;width:15px;height:15px;border-top:1px solid #747c83}
.work-hero:before{left:11px;border-left:1px solid #747c83}.work-hero:after{right:11px;border-right:1px solid #747c83}
.work-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.work-stamp{position:absolute;top:21px;left:21px;display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.work-number{font-size:clamp(36px,4.3vw,66px);font-weight:300;letter-spacing:-.07em;line-height:1;color:transparent;-webkit-text-stroke:1px #b9c0c8}
.work-state{font-size:9px;letter-spacing:.08em;padding:4px 7px;background:#171a1c;color:white}
.is-empty .work-state{background:#e1e5e9;color:#707880}
.work-year{position:absolute;right:20px;top:24px;color:#7e8791;font-size:10px;letter-spacing:.1em}
.work-heading{position:absolute;bottom:0;left:0;right:0;padding:14px 19px;background:#ffffffd9;min-height:61px;display:flex;flex-direction:column;gap:4px}
.work-heading strong{font-size:clamp(19px,1.7vw,28px);font-weight:650;letter-spacing:.01em;line-height:1.35;padding-right:30px}
.work-heading>span{font-size:12px;color:#666f78;line-height:1.5}
.work-hero:not(:disabled) .work-heading:after{content:'↗';position:absolute;right:18px;top:20px;font-size:24px}
.is-empty .work-heading{background:transparent}.is-empty .work-heading strong{font-size:16px;font-weight:400;color:#8a929b}
.work-action{display:flex;align-items:center;gap:12px;min-height:39px;border-bottom:2px solid #dce0e4;padding-top:5px;position:relative}
.work-action:after{content:'';position:absolute;bottom:-2px;left:0;width:24px;height:2px;background:#171a1c}
#work-meta{font-size:12px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-left:15px;position:relative}
#work-meta:not(:empty):before{content:'';position:absolute;left:0;top:5px;width:5px;height:5px;background:#222}
#work-open{display:flex;align-items:center;justify-content:center;gap:19px;min-width:152px;padding:8px 20px;background:#171a1c;color:white;font-size:13px;border-radius:2px;margin-bottom:4px}
#work-open:not(:disabled):hover{background:#30363c}#work-open:disabled{background:#e5e8eb;color:#939aa1}
.hud-panel kbd{font-size:10px;font-weight:400;line-height:19px;padding:0 5px;border:1px solid #c2c8cf;border-radius:2px;background:transparent;box-shadow:0 1px 0 #c2c8cf;white-space:nowrap}
#work-open kbd{font-size:13px;line-height:17px;padding:0 4px;border-color:currentColor;box-shadow:none}
.work-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;flex:0 0 auto}
.work-tile{min-width:0;border:1px solid #d8dde1;border-radius:2px;text-align:left;overflow:hidden;display:flex;flex-direction:column;background:transparent;transition:border-color .15s}
.work-tile:not(:disabled):hover{border-color:#434c55}
.tile-visual{display:block;position:relative;height:clamp(62px,11dvh,115px);width:100%;overflow:hidden;background:#f0f2f4}
.tile-visual img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tile-number{position:absolute;top:8px;left:8px;padding:2px 6px;font-size:15px;border:1px solid #949ca5;color:#434c55;background:#ffffffbd}
.tile-info{display:flex;flex-direction:column;gap:3px;position:relative;width:100%;min-height:48px;padding:8px 30px 8px 12px}
.tile-info strong{font-size:14px;font-weight:600;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tile-info>span:not(.tile-arrow){font-size:11px;color:#7e8791;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tile-arrow{position:absolute;right:12px;top:13px;font-size:19px}
.hud-footer{display:flex;align-items:center;gap:10px;flex-shrink:0;min-height:27px;font-size:9px;color:#838b95;letter-spacing:.02em}
.hud-footer-line{height:1px;background:var(--hud-line);flex:1;min-width:6px}
.hud-keys{display:flex;align-items:center;gap:7px;white-space:nowrap}.hud-keys>span{margin-right:5px}
.hud-readout{position:fixed;z-index:11;width:240px;border-left:1px solid #7d848c;padding:2px 0 2px 18px;pointer-events:none;color:#69727b;font-size:11px;letter-spacing:.06em;line-height:1.8}
.hud-readout:after{content:'';width:10px;height:1px;background:#7d848c;position:absolute;left:0;bottom:0}
.hud-readout strong{display:block;color:#252b31;font:12px/1.8 'Helvetica Neue','Microsoft YaHei',sans-serif;letter-spacing:.02em;font-weight:400}
.object-pips{display:flex;gap:7px;position:absolute;right:0;top:9px}.object-pips i{height:6px;width:6px;background:#d4d8dd}.object-pips i.active{background:#171a1c}
#hud-connector{position:fixed;inset:0;width:100%;height:100%;z-index:11;pointer-events:none;overflow:visible}
#hud-connector path{stroke:#8a929b;stroke-width:.8;fill:none}#hud-connector circle{fill:#2454cf;stroke:#fff;stroke-width:2}
#project-dialog{border-radius:3px}#detail-content:empty{display:none}.detail-image{width:100%;height:auto;display:block;margin-bottom:24px}.project-link{display:inline-block;padding:10px 16px;background:#171a1c;color:#fff;text-decoration:none;border-radius:2px}
@media(min-width:1600px){.works-panel.hud-panel{padding:24px;gap:18px}.hud-topline{min-height:32px}.hud-feature{flex-basis:300px}.hud-archive{font-size:11px}.hud-heading #panel-en{font-size:13px}.tile-info{min-height:58px;padding:10px 14px}.tile-info strong{font-size:18px}.tile-info>span:not(.tile-arrow){font-size:13px}.hud-footer{font-size:11px}}
@media(min-width:601px) and (max-width:950px){.works-panel.hud-panel{right:2%;width:56%;padding:13px;gap:11px}.hud-topline{gap:7px}.hud-archive{font-size:8px;gap:5px}.hud-counter{font-size:11px;gap:5px;padding:0}.hud-nav{gap:4px}.hud-heading{gap:10px}.hud-heading #panel-en{font-size:9px;padding-left:10px;letter-spacing:.07em}.hud-keys{gap:4px}.hud-keys>span{display:none}.hud-footer{font-size:8px}.hud-readout{width:180px;font-size:9px}.hud-readout strong{font-size:11px}.object-pips{gap:5px}.tile-info{padding-left:8px}.work-stamp{left:17px}.work-heading{padding:12px 15px}}
@media(max-width:600px){.works-panel.hud-panel{left:4%;right:4%;width:92%;max-width:none;top:41dvh;bottom:12px;padding:13px;gap:11px;border-radius:3px}.hud-topline{gap:7px;min-height:26px}.hud-archive{font-size:8px;gap:6px}.hud-counter{font-size:11px;gap:5px;padding:0}.hud-nav{gap:4px}.hud-nav button{width:28px;height:28px}.hud-panel #close-panel{width:28px;margin:0}.hud-heading{gap:12px}.works-panel.hud-panel h2{font-size:25px}.hud-heading #panel-en{font-size:9px;letter-spacing:.08em;padding-left:12px}.hud-feature{min-height:165px;flex-basis:175px}.work-hero{min-height:130px}.work-stamp{left:16px;top:17px}.work-number{font-size:37px}.work-state{font-size:8px;padding:3px 5px}.work-heading{padding:10px 14px;min-height:45px}.work-heading strong{font-size:18px}.is-empty .work-heading strong{font-size:14px}.work-heading>span{font-size:10px}.work-action{min-height:34px}#work-meta{font-size:10px}#work-open{min-width:124px;padding:6px 11px;font-size:12px;gap:12px}.work-tiles{gap:9px}.tile-visual{height:62px}.tile-info{min-height:32px;padding:7px 26px 7px 9px}.tile-info strong{font-size:12px}.tile-info>span:not(.tile-arrow){font-size:10px}.tile-number{font-size:12px}.hud-footer{min-height:24px;font-size:8px}.hud-keys>kbd:not(:last-of-type),.hud-keys>span:not(:last-child){display:none}.hud-keys{gap:6px}.hud-readout,#hud-connector{display:none!important}#project-dialog{padding:32px 21px}}
