:root { color-scheme: dark; --ink: #07101a; --text: #eee9df; --muted: #a9b4c0; --line: #ffffff20; --accent: #e4bd88; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; background: var(--ink); color: var(--text); }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
button { color: inherit; font: inherit; cursor: pointer; touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, p { margin: 0; }
h1, h2, .project strong { font-family: "Songti SC", "Yu Mincho", "Noto Serif CJK SC", serif; font-weight: 400; }
.scene { position: relative; height: 100svh; min-height: 480px; overflow: hidden; background: radial-gradient(ellipse at 60% 40%, #152335, #050b12 75%); }
.scene-window { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.scene-art { width: 100%; height: 100%; display: block; object-fit: contain; }
.wordmark-cover { position: absolute; left: 3%; top: 5%; width: 33%; height: 23%; background: linear-gradient(115deg, #091522, #0c1929); mask-image: linear-gradient(#000 85%, transparent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.eyebrow { font-size: 10px; letter-spacing: .22em; color: var(--muted); line-height: 1.8; }
.screen-hotspot { position: absolute; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.focus-beacon { width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: #dcefff; box-shadow: 0 0 18px 6px #c0e4ff90, 0 0 0 12px #e6f5ff20; animation: beacon 2.8s ease-in-out infinite; }
.screen-hotspot:hover .focus-beacon, .screen-hotspot:focus-visible .focus-beacon { box-shadow: 0 0 24px 10px #d0ecffbb, 0 0 0 18px #e6f5ff40; }
.screen-hotspot:focus-visible { outline: 0; }
.screen-hotspot:focus-visible .focus-beacon { outline: 2px solid #fff; outline-offset: 8px; }
@keyframes beacon { 50% { opacity: .65; transform: scale(.8); } }
.basic-directory { max-width: 1100px; margin: auto; padding: 32px 24px; font-size: 14px; line-height: 2; overflow-wrap: anywhere; }
.basic-directory h2 { font-size: 24px; margin-bottom: 16px; }
.basic-directory a { color: var(--accent); display: inline-block; padding: 8px 0; }
dialog { position: fixed; inset: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: var(--text); overflow: hidden; }
dialog::backdrop { background: #030912bb; backdrop-filter: blur(7px); }
.monitor { position: absolute; inset: 0; margin: auto; width: min(1100px, calc(100% - 64px)); height: min(720px, calc(100% - 64px)); border: 10px solid #10151c; border-bottom-width: 20px; border-radius: 12px; display: flex; flex-direction: column; background: #153f59; overflow: hidden; box-shadow: 0 36px 120px #000b, 0 0 0 1px #4a556844; transform-origin: 0 0; }
.desktop-wallpaper { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.desktop-wallpaper img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; }
.monitor-toolbar, .screen-content, .monitor-footer { position: relative; }
.monitor-toolbar { display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; padding: 0 18px; background: #092437c9; backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); font-size: 12px; }
.status-light { display: inline-block; margin-right: 10px; height: 5px; width: 5px; border-radius: 50%; background: #b7cda9; box-shadow: 0 0 8px #b7cda960; vertical-align: middle; }
.text-button { border: none; background: transparent; min-height: 44px; padding: 8px; font-size: 12px; color: #ced6df; }
.text-button span { margin-left: 10px; color: var(--accent); }
.screen-content { flex: 1; min-height: 0; overflow: auto; padding: 32px 24px; overscroll-behavior: contain; }
dialog[aria-busy="true"] .screen-content { visibility: hidden; }
.screen-content h2 { font-size: clamp(28px, 3.5vw, 46px); line-height: 1.5; letter-spacing: .05em; margin-top: 10px; }
.screen-content h2:focus { outline: none; }
.project-list { display: grid; grid-template-columns: repeat(auto-fill, 148px); align-items: start; gap: 20px; margin: 0; padding: 0; border: 0; min-width: 0; }
.project { color: #fff; text-decoration: none; text-align: center; border: 1px solid transparent; border-radius: 6px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 14px; background: #09223738; min-width: 0; font: inherit; text-shadow: 0 1px 5px #000, 0 1px 2px #000; }
.project:hover, .project:focus-visible { background: #c6e7ff35; border-color: #e6f5ff70; }
.folder-icon { position: relative; display: block; flex-shrink: 0; margin-top: 10px; width: 76px; height: 52px; border-radius: 4px 7px 7px 7px; background: linear-gradient(#f6d796, #dba958); box-shadow: 0 4px 8px #09223755; }
.folder-icon::before { content: ""; position: absolute; top: -9px; left: 0; width: 34px; height: 13px; border-radius: 5px 7px 0 0; background: #e5b96f; }
.folder-icon::after { content: ""; position: absolute; inset: 7px 0 0; border-radius: 4px 4px 7px 7px; border-top: 1px solid #fff7; background: linear-gradient(#ffe6ac, #e8b86b); }
.project-text { display: flex; flex-direction: column; gap: 5px; width: 100%; min-width: 0; overflow-wrap: anywhere; }
.project strong { font: 500 13px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.project-kind, .project-status { font-size: 10px; line-height: 1.5; color: #fff; }
.empty-directory { padding: 16px; color: #fff; background: #092437c9; border-radius: 6px; }
#detail-view { max-width: 600px; padding: 24px; border: 1px solid #fff4; border-radius: 8px; background: #0b1e30ed; box-shadow: 0 16px 48px #0004; }
.monitor-footer { flex-shrink: 0; display: flex; justify-content: space-between; padding: 12px 24px; background: #092437db; backdrop-filter: blur(16px); border-top: 1px solid var(--line); font-size: 9px; letter-spacing: .16em; color: var(--muted); }
.preparation-label { color: var(--accent); font-size: 13px; margin-top: 28px; }
.preparation-label span { margin-right: 6px; }
.detail-description { max-width: 38em; color: #bdc6d0; font-size: 14px; line-height: 1.9; margin-top: 16px; }
.detail-description, .screen-content h2, #detail-kind { overflow-wrap: anywhere; }
.back-projects { min-height: 44px; padding: 10px 0; margin-top: 32px; border: 0; border-bottom: 1px solid #ffffff40; font-size: 13px; background: transparent; }
.back-projects span { margin-right: 12px; color: var(--accent); }
@media (max-width: 640px) {
  .scene-window { top: 40%; }
  .monitor { width: calc(100% - 20px); height: calc(100% - 24px); border-width: 5px; border-bottom-width: 12px; border-radius: 9px; }
  .monitor-toolbar { padding: 8px 12px; }
  .screen-content { padding: 28px 20px; }
  .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .project { padding: 12px 6px; }

  .monitor-footer { padding: 13px 16px; }
}
@media (max-height: 500px) {
  .scene { min-height: 320px; }
  .monitor { width: calc(100% - 24px); height: calc(100% - 20px); border-width: 5px; }
  .monitor-toolbar { padding: 0 18px; }
  .screen-content { padding: 12px 24px; }
  .screen-content h2 { font-size: 24px; margin-top: 4px; }
  .project-list { grid-template-columns: repeat(auto-fill, minmax(100px, 120px)); gap: 12px; }
  .project { gap: 10px; padding: 10px 6px; }
  .project-text { gap: 6px; }
  .monitor-footer { padding: 8px 18px; }
  .preparation-label { margin-top: 10px; }
  .back-projects { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
