:root{--bg:#f7f3ed;--surface:#fffdf9;--surface2:#ebe4dc;--ink:#242124;--muted:#655d61;--blue:#b62b3c;--gold:#a2402f;--line:#34252926;--story-red:#c72e40}
.header{background:#f7f3edf5;border-bottom:2px solid #242124}.header nav a[aria-current]:after{background:var(--story-red)}
.hero h1>span,.hero-slogan-emphasis{color:var(--ink)}.hero-slogan-emphasis{background:linear-gradient(transparent 77%,#eaa2a8 77%);text-shadow:none}
.primary{background:#242124;color:#fffdf9;clip-path:none;border:1px solid #242124;box-shadow:4px 4px 0 #c72e40;border-radius:2px}.primary:hover{background:#b62b3c;transform:translate(-1px,-1px);box-shadow:5px 5px 0 #242124}
.hero .inspiration-board{max-width:650px}.inspiration-window{aspect-ratio:1280/723;border:2px solid #242124;box-shadow:8px 8px 0 #242124}.inspiration-panel img{object-fit:contain}.inspiration-board:before{display:none}.inspiration-header{color:#242124;letter-spacing:.12em;font-weight:700}
.stage-caption{display:flex;justify-content:space-between;gap:12px;margin-top:24px;font-size:12px;line-height:1.6}.stage-caption b{color:var(--blue);font:10px Consolas,monospace}.inspiration-credit .text-link{border:0;background:none;font-size:11px;min-height:36px;padding:4px;color:var(--muted)}
.works-section{background:#eee6df}.notes-section{background:#eee9e3}.project-card,.showreel,.skills-grid{background:#fffdf9}.project-card:hover{border-color:#b62b3c80}.tags span{background:#f7f3ed}.filters button[aria-pressed=true]{background:#242124;box-shadow:0 3px 0 #c72e40}.project-visual.abstract{background:linear-gradient(125deg,#eadbd8,#f7f3ed)}.visual-type{color:#7b3e47}.visual-index{color:#ae63633d}.gallery-image,#image-dialog{background:#eee7df}
.section-guide-button{display:inline-flex;gap:8px;align-items:center;min-height:38px;padding:7px 12px;border:1px solid #ad8c8f;background:transparent;color:#8e2734;font-size:12px;border-radius:2px;white-space:nowrap}.section-guide-button:hover{background:#f3dfe1;border-color:#b62b3c}.section-head{flex-wrap:wrap}.hero-copy>.section-guide-button{margin-top:18px}.afterword-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.skill-card>.section-guide-button{margin-top:18px}.section-guide-slot:empty{display:none}.section-guide-slot:not(:empty){margin:20px 0 30px}
.story-panel{position:relative;display:grid;grid-template-columns:125px minmax(0,1fr);align-items:end;gap:20px;margin:24px 0;background:#29252a;color:#fff8f1;border:1px solid #635357;border-top:4px solid #cb3447;box-shadow:5px 5px 0 #d3c4bd;min-width:0;isolation:isolate}
.story-portrait{align-self:stretch;min-height:200px;background-repeat:no-repeat;background-size:200% auto;background-position:0 0;overflow:hidden;background-color:#373037}
.story-copy{padding:20px 22px 16px 0;min-width:0}.story-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.story-speaker{font-size:15px;color:#fff}.story-scene{font:9px Consolas,monospace;letter-spacing:.06em;color:#dcbabf}.story-words{font-size:15px;line-height:1.9;min-height:3.8em;margin:16px 0;color:#fff8f1;overflow-wrap:anywhere}.story-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.story-count{font:10px Consolas,monospace;color:#c6b8bb;margin-right:auto}.story-actions button{font-size:12px;border:0;background:none;color:#f5dce0;min-height:36px;padding:6px 0}.story-actions button:hover{color:white;text-decoration:underline}.story-actions button[hidden]{display:none}
.dialog-shell{background:var(--bg)}#detail-body>.story-panel{margin:0 0 36px}.detail-head{scroll-margin-top:30px}.story-panel button:focus-visible{outline-color:#fff}
#story-dialog{padding:0;width:min(840px,calc(100% - 32px));max-height:90dvh;border:1px solid #29252a;background:var(--bg);color:var(--ink);overflow:auto}#story-dialog::backdrop{background:#171117c9}.story-video-art{height:160px;background:#191419 url('assets/inspiration/gbc-user-backstage.jpg') center 44%/cover}.story-video-content{padding:26px 32px 32px}.story-video-content h2{font-size:28px;margin:0}.story-video-content>.eyebrow{margin-bottom:10px}.story-close{position:absolute;right:14px;top:12px;width:44px;height:44px;background:#242124;color:#fff;border:1px solid #ffffff80;font-size:24px}.story-video-actions{display:flex;align-items:center;gap:25px;flex-wrap:wrap}.story-return{border:0;background:none;min-height:44px;color:var(--muted);font-size:13px}#image-dialog>.story-panel{max-width:760px;margin:20px auto 0;text-align:left}#image-dialog .story-portrait{min-height:170px}
#opening-dialog,#opening-dialog::backdrop{background:#1b171b}.opening-slash{background:#c72e40;opacity:.55}.opening-rule:after{background:#ed4653}.opening-wordmark p{color:#f0bdc3}.opening-skip{background:#231a21d9}.opening-skip span{color:#f0bdc3}.opening-panels img{filter:saturate(.85) brightness(.75)}.opening-panels figure:nth-child(1) img{object-position:30% center}.opening-panels figure:nth-child(2) img{object-position:50% center}.opening-panels figure:nth-child(3) img{object-position:75% center}.opening-grain{opacity:.08}.version-label{color:var(--blue)}
@media(min-width:1001px){.hero{grid-template-columns:.9fr 1.15fr;gap:55px;min-height:710px}}
@media(max-width:720px){.story-panel{grid-template-columns:84px minmax(0,1fr);gap:12px;margin:18px 0}.story-portrait{min-height:200px;background-size:285% auto;background-position:8% 0!important}.story-portrait[data-pose="1"]{background-position:92% 0!important}.story-copy{padding:14px 13px 12px 0}.story-words{font-size:14px;line-height:1.8;margin:12px 0}.story-scene{font-size:8px}.story-actions{gap:12px}.story-actions button{font-size:11px}.story-video-content{padding:24px 18px}.story-video-art{height:130px}.stage-caption{font-size:11px}.inspiration-window{box-shadow:5px 5px 0 #242124}.section-guide-slot:not(:empty){margin:15px 0 24px}.hero-actions{flex-wrap:wrap}}
@media(prefers-reduced-motion:no-preference){.story-panel{animation:dialogue-arrive .22s ease-out}@keyframes dialogue-arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}}
/* Preserve the original official drawings; motion changes emphasis, never identity. */
.story-portrait{background-size:100% auto;background-position:center top!important;min-height:220px;background-color:#e7ddd6;transition:transform .2s ease}
.story-portrait[data-pose="1"]{transform:translateY(-3px)}
@media(max-width:720px){.story-portrait{background-size:145% auto;background-position:center top!important;min-height:190px}.story-portrait[data-pose="1"]{background-position:center top!important}}
@media(prefers-reduced-motion:reduce){.story-portrait{transform:none!important}}
.story-panel{grid-template-columns:155px minmax(0,1fr)}
.story-portrait{background-size:165% auto;min-height:220px}
.hero-copy>.section-guide-button{margin-left:16px}
@media(max-width:720px){.story-panel{grid-template-columns:84px minmax(0,1fr)}.story-portrait{background-size:205% auto;min-height:190px}.hero-copy>.section-guide-button{margin-left:12px}}
.story-credit{font-size:11px;color:var(--muted);line-height:1.7;display:block;width:100%}.story-credit a{text-decoration:underline;text-underline-offset:3px}
/* Responsive visual-novel stage: portrait never covers the name or dialogue. */
.game-dialogue{position:fixed;inset:auto 0 max(24px,env(safe-area-inset-bottom));z-index:65;width:min(1240px,calc(100vw - 64px));height:auto;margin:0 auto;display:grid;grid-template-columns:260px minmax(0,1fr);align-items:end;isolation:isolate;color:#fffaf4;text-align:left}
.game-dialogue-box{position:relative;grid-column:1/-1;grid-row:1;min-height:230px;padding:26px 36px 24px 300px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(min-content,1fr) auto;align-content:stretch;gap:12px 20px;border:1px solid #eee3d6;background:#242026;box-shadow:6px 6px 0 #632b43,0 8px 45px #0005;border-radius:3px}
.game-dialogue-box:before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:var(--story-red)}
.game-portrait{position:relative;z-index:1;grid-column:1;grid-row:1;align-self:end;display:block;width:260px;height:min(52dvh,420px);object-fit:contain;object-position:center bottom;filter:drop-shadow(0 5px 3px #0005);pointer-events:none}
.game-speaker{grid-column:1;grid-row:1;font-size:21px;letter-spacing:.04em;line-height:1.5;color:#fff;padding-right:20px}
.game-scene{grid-column:2;grid-row:1;align-self:center;margin-right:32px;font:10px Consolas,monospace;letter-spacing:.08em;color:#d6aab4}
.game-words{grid-column:1/-1;font-size:20px;line-height:1.85;margin:0;color:#fffaf4;letter-spacing:.02em;overflow-wrap:anywhere}
.game-dialogue-close{position:absolute;right:8px;top:8px;width:44px;height:44px;border:0;background:none;color:#eee3d6;font-size:24px;cursor:pointer;border-radius:3px}
.game-dialogue-close:hover{background:#ffffff0c}.game-dialogue-close:focus-visible{outline:2px solid #fff;outline-offset:-4px}
.game-dialogue-mark{grid-column:1/-1;justify-self:end;align-self:end;margin-top:12px;font:12px 'Segoe UI','Microsoft YaHei',sans-serif;letter-spacing:.04em;color:#ead3d8}
.game-screen{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:hidden;background:#18121a24;color:#fffaf4;outline:0;cursor:pointer;overscroll-behavior:contain;touch-action:manipulation}
.game-screen:not([open]){display:none}.game-screen::backdrop{background:#1712192e}
body.game-speaking{overflow:hidden}dialog.has-game-dialogue{overflow:hidden!important}#detail-dialog.has-game-dialogue .dialog-shell{padding-bottom:30px}#image-dialog.has-game-dialogue{padding-bottom:20px}
body.game-speaking .echo-pet-bubble,body.game-speaking .echo-pet-guide-controls{visibility:hidden!important}
.skill-card[role=button],.experience-row[role=button]{cursor:pointer}.skill-card[role=button]:focus-visible,.experience-row[role=button]:focus-visible{outline:2px solid var(--blue);outline-offset:5px}
@media(max-width:900px){.game-dialogue{width:calc(100vw - 36px);grid-template-columns:195px minmax(0,1fr)}.game-portrait{width:195px;height:min(50dvh,340px)}.game-dialogue-box{padding-left:220px;padding-right:26px}.game-scene{display:none}.game-speaker{padding-right:32px}.game-words{font-size:18px}}
@media(max-width:600px){.game-dialogue{display:flex;flex-direction:column;align-items:flex-start;width:calc(100vw - 28px);bottom:max(18px,env(safe-area-inset-bottom));max-height:calc(100dvh - 32px)}.game-portrait{align-self:flex-start;width:150px;height:clamp(140px,29dvh,240px);flex-shrink:1;min-height:0;object-position:left bottom;margin-left:12px}.game-dialogue-box{flex:0 0 auto;width:100%;min-height:205px;max-height:calc(100dvh - 48px);overflow-y:auto;padding:18px 20px 16px;gap:10px;box-shadow:4px 4px 0 #632b43}.game-speaker{font-size:18px;padding-right:32px}.game-words{font-size:16px;line-height:1.8}.game-dialogue-mark{font-size:11px;margin-top:8px}.game-dialogue-close{top:5px;right:5px}}
@media(max-height:520px) and (min-width:601px){.game-dialogue{bottom:14px;grid-template-columns:150px minmax(0,1fr)}.game-portrait{height:calc(100dvh - 40px);width:150px}.game-dialogue-box{padding:18px 26px 16px 175px;min-height:190px;max-height:calc(100dvh - 28px);overflow-y:auto}.game-words{font-size:16px}.game-speaker{font-size:18px}.game-scene{display:none}.game-dialogue-mark{margin-top:4px}}
/* Echo ring: compact symbol and quiet wordmark, with a separate small-size favicon. */
.header .brand{gap:12px}.header .brand .nav-logo{width:46px;height:46px}.header .brand .brand-name{font-size:23px;letter-spacing:-.045em;font-weight:650}.header .brand small{font-size:8px;letter-spacing:.22em;margin-top:7px;font-weight:500}.contact-side>.contact-brand-mark{width:132px;height:132px}
@media(max-width:720px){.header .brand .nav-logo{width:38px;height:38px}.header .brand .brand-name{font-size:20px}.header .brand{gap:9px}.header .brand small{font-size:7px}}
