:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #42413c;
  --strong: #262622;
  --muted: #74736b;
  --accent: #ac5639;
  --link: #42688b;
  --link-hover: #234766;
  --metric: #315d83;
  --border: #d5d4cc;
  --border-soft: #e7e6df;
  --selection-bg: #eed8cc;
  --selection-text: #352820;
  --terminal-font: Monaco, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  font-family: var(--terminal-font);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
  --page-gutter: clamp(16px, 2.4vw, 56px);
  --small-text: max(13px, .85rem);
  --caption-text: max(12px, .78rem);
  font-size: clamp(14px, min(calc(11px + .25vw), calc(9px + .7svh)), 16px);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1c1c1c;
  --text: #d7d6d1;
  --strong: #e8e7e3;
  --muted: #95958c;
  --accent: #d6805f;
  --link: #9ab5d4;
  --link-hover: #c0d2e6;
  --metric: #bbcee4;
  --border: #50504a;
  --border-soft: #373732;
  --selection-bg: #6c5144;
  --selection-text: #ffffff;
}
* { box-sizing: border-box; }
body { margin: 0; }
.terminal { max-width: 1920px; margin-inline: auto; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
::selection { background: var(--selection-bg); color: var(--selection-text); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px dashed var(--accent); outline-offset: 5px; }
p { margin: 0; }
#welcome-screen { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 2rem clamp(24px, 3vw, 64px); min-height: 100svh; padding: 1.5rem var(--page-gutter) 3rem; overflow: clip; container-type: inline-size; }
#welcome-screen, .workspace-page { scroll-snap-align: start; scroll-snap-stop: always; }
#welcome-screen:focus, .workspace-page:focus { outline: none; }
.welcome-topbar { grid-column: 1 / -1; position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.welcome-message { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 9px 14px; border: 1px solid var(--accent); border-radius: 5px; color: var(--text); font-family: var(--terminal-font); font-size: 1rem; line-height: 1.65; letter-spacing: 0; }
.welcome-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-width: 0; }
.theme-toggle { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--muted); font: var(--caption-text)/1.5 var(--terminal-font); cursor: pointer; }
.theme-toggle:hover { color: var(--strong); border-color: var(--muted); }
.theme-toggle:focus-visible { outline: 1px dashed var(--accent); outline-offset: 4px; }
.workspace-header .theme-toggle { margin-left: auto; }
.welcome-star { flex-shrink: 0; color: var(--accent); font-size: 18px; line-height: 1; }
.welcome-message strong { color: var(--strong); font-family: inherit; font-weight: 700; font-synthesis: weight; }
.welcome { position: relative; z-index: 1; grid-column: 1; grid-row: 2; display: flex; flex-direction: column; min-width: 0; width: 100%; margin: 0; container-type: inline-size; pointer-events: none; }
.entry-menu { pointer-events: auto; }
.portrait { position: relative; grid-column: 2; grid-row: 2; width: 100%; min-height: 340px; overflow: hidden; }
.portrait canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; }
.ascii-name { flex-shrink: 0; margin: 0; color: var(--accent); font: clamp(10px, calc(100cqw / 31), 28px)/1.12 "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-weight: 400; letter-spacing: 0; }
.name-word { display: block; white-space: normal; --boot-start: 220ms; }
.name-line { display: block; white-space: pre; }
.name-word + .name-word { margin-top: .7em; }
.entry-menu { width: fit-content; max-width: 100%; font: 1rem/1.8 var(--terminal-font); }
.entry-options { display: flex; flex-wrap: wrap; gap: 0 1rem; list-style: none; padding: 0; margin: 0; }
.entry-option { display: grid; grid-template-columns: 1ch 2ch auto; align-items: center; gap: 6px; min-height: 44px; width: fit-content; white-space: nowrap; }
.option-cursor { visibility: hidden; }
.option-number { color: var(--muted); }
.entry-option.is-selected, .entry-option.is-selected .option-number { color: var(--link); }
.entry-option.is-selected .option-cursor { visibility: visible; }
.entry-option:focus-visible { outline-offset: 2px; }
.welcome-footer { flex-shrink: 0; width: fit-content; max-width: 100%; margin-top: auto; padding-top: 42px; pointer-events: auto; }
.welcome-motto { color: var(--strong); font: 1rem/1.8 var(--terminal-font); }
.welcome-continue { display: flex; align-items: center; gap: 12px; width: fit-content; min-height: 44px; margin-top: 12px; color: var(--link); }
.welcome-continue:hover { color: var(--link-hover); }
.welcome-continue kbd { font: inherit; font-weight: 700; font-synthesis: weight; }
/* A delayed zero-duration reveal has an exact final state. A 1ms step-end
   animation can round below its final step and stay hidden until cleanup. */
.welcome-message, .name-line, .welcome-motto, #welcome-screen .entry-options > li, .welcome-continue, .boot-glyph, .welcome-cursor {
  animation: terminal-row-in 0s linear both;
  animation-delay: var(--boot-delay, 0ms);
}
.welcome-message { --boot-delay: 80ms; }
.name-word + .name-word { --boot-start: 740ms; }
.name-line { --boot-delay: calc(var(--boot-start) + var(--boot-line) * 70ms); }
.entry-options > li:nth-child(1) { --boot-delay: 100ms; }
.entry-options > li:nth-child(2) { --boot-delay: 140ms; }
.entry-options > li:nth-child(3) { --boot-delay: 180ms; }
.entry-options > li:nth-child(4) { --boot-delay: 220ms; }
.entry-options > li:nth-child(5) { --boot-delay: 260ms; }
.welcome-motto { --boot-delay: 1180ms; }
.welcome-continue { --boot-delay: 1960ms; }
.boot-glyph { white-space: pre; animation-delay: calc(var(--boot-delay) + var(--char-index) * var(--type-step)); }
.welcome-cursor { display: inline-flex; animation-delay: calc(var(--boot-delay) + var(--typing-duration, 0ms) + 100ms); }
.intro-finished :is(.welcome-message, .name-line, .welcome-motto, .entry-options > li, .welcome-continue, .boot-glyph, .welcome-cursor) { animation: none; }
@keyframes terminal-row-in {
  from { visibility: hidden; opacity: 0; }
  to { visibility: visible; opacity: 1; }
}
.workspace { --workspace-header-height: 100px; --workspace-copy-width: min(54rem, 56vw); --workspace-copy-indent: 1.4rem; --workspace-content-top: clamp(12px, 1.8svh, 20px); --workspace-content-bottom: clamp(12px, 2svh, 20px); --workspace-content-height: calc(100svh - var(--workspace-header-height) - var(--workspace-content-top) - var(--workspace-content-bottom)); }
.workspace-page { min-height: calc(100svh - var(--workspace-header-height)); padding: 0 var(--page-gutter) var(--workspace-content-bottom); display: flex; flex-direction: column; scroll-margin-top: var(--workspace-header-height); }
.workspace-page[hidden] { display: none; }
.workspace-header { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 4.25rem minmax(0, 1fr) auto; align-items: start; gap: .7rem 1.25rem; padding: .9rem var(--page-gutter) .7rem; background: var(--bg); }
.workspace-mark { display: block; width: 4.25rem; height: 3.45rem; color: var(--accent); flex-shrink: 0; }
.workspace-mark svg { display: block; width: 100%; height: 100%; }
.workspace-meta { padding-top: 4px; min-width: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.workspace-title-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.workspace-title-line h2 { margin: 0; color: var(--strong); font: inherit; font-weight: 700; font-synthesis: weight; }
.workspace-path { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.workspace-panel { min-width: 0; max-width: var(--workspace-copy-width); margin-top: var(--workspace-content-top); display: flex; flex-direction: column; flex: 1; width: 100%; }
.page-index { position: fixed; z-index: 3; top: 0; right: 0; width: 16px; height: 100svh; font-size: 12px; line-height: 1.4; }
.page-index[hidden] { display: none; }
.page-index::before, .page-index::after { content: ''; position: absolute; top: 0; right: 0; pointer-events: none; }
.page-index::before { width: 1px; height: 100%; background: var(--border-soft); }
.page-index::after { width: 3px; height: calc(100% / var(--page-count)); background: var(--accent); transform: translateY(calc(var(--active-page, 0) * 100%)); transition: transform 180ms ease; }
.page-index-list { position: relative; z-index: 1; display: grid; grid-template-rows: repeat(var(--page-count), minmax(0, 1fr)); height: 100%; list-style: none; margin: 0; padding: 0; }
.page-index-link { position: relative; display: flex; align-items: center; width: 100%; height: 100%; }
.page-index-link:focus-visible { outline-offset: 0; }
.page-index-label { position: absolute; right: calc(100% + 8px); padding: 5px 10px; border: 1px solid var(--border-soft); border-radius: 3px; background: var(--bg); color: var(--text); white-space: nowrap; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 120ms ease; }
.page-index-link:hover .page-index-label, .page-index-link:focus-visible .page-index-label { visibility: visible; opacity: 1; }
.section-command { margin: 0 0 14px; font: inherit; color: var(--strong); }
.section-command > span { margin-right: 8px; color: var(--accent); }
.section-command .section-page { margin: 0 0 0 12px; color: var(--muted); font-size: var(--small-text); }
.terminal-output { margin-left: var(--workspace-copy-indent); line-height: 1.75; display: flow-root; }
.skills-output { margin-top: 4px; overflow-wrap: anywhere; }
.skill-title { margin: 0 0 6px; color: var(--link); font: inherit; }
.skill-description + .skill-title { margin-top: 16px; }
.skill-description + .skill-description { margin-top: 8px; }
.self-review p + p { margin-top: 18px; }
.contact-section { margin-top: 32px; }
.contact-content { display: grid; grid-template-columns: minmax(0, 1fr) 184px; align-items: start; gap: 32px; margin-left: var(--workspace-copy-indent); }
.contact-list { margin: 0; }
.contact-list > div { display: grid; grid-template-columns: 7ch minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.contact-list dt { color: var(--muted); font-size: var(--small-text); }
.contact-list dd { margin: 0; min-width: 0; }
.contact-list a, .contact-copy { color: var(--link); overflow-wrap: anywhere; }
.contact-copy { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.contact-copy svg { flex-shrink: 0; }
.contact-list a:hover, .contact-copy:hover { color: var(--link-hover); }
.contact-copy:focus-visible { outline: 1px dashed var(--accent); outline-offset: 5px; }
.contact-feedback { min-height: 24px; margin-top: 10px; color: var(--muted); font-size: var(--small-text); }
.contact-code { width: 184px; max-width: 100%; margin: 0; }
.contact-code img { display: block; width: 100%; height: auto; padding: 8px; background: #fff; border: 1px solid var(--border-soft); border-radius: 4px; }
.contact-code figcaption { margin-top: 8px; color: var(--muted); font-size: var(--small-text); text-align: center; }
.education-school { color: var(--strong); font-weight: 700; font-synthesis: weight; }
.education-meta { color: var(--muted); }
.education-courses { margin-top: 12px; }
.research-label { margin: 20px 0 10px; color: var(--strong); font: inherit; }
.research-funding { color: var(--link); }
.research-title { margin: 3px 0 8px; color: var(--strong); font: inherit; }
.research-next { margin-top: 18px; }
.research-title, .education-meta { overflow-wrap: anywhere; }
.venture-meta, .venture-scale-label { color: var(--muted); }
.venture-title { margin: 5px 0 12px; color: var(--strong); font: inherit; font-weight: 700; font-synthesis: weight; }
.venture-scale-label { margin-top: 14px; font-size: var(--caption-text); }
.venture-scale { color: var(--link); font-size: var(--small-text); }
.internship-company { margin: 0; color: var(--strong); font: inherit; font-weight: 700; font-synthesis: weight; }
.internship-meta { margin-top: 3px; color: var(--muted); }
.internship-project { min-width: 0; margin: 20px 0 0 var(--workspace-copy-indent); }
.internship-project-heading { margin-bottom: 16px; }
.internship-project-title { margin: 0; color: var(--strong); font: inherit; font-weight: 700; font-synthesis: weight; }
.internship-case-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.internship-case-body h5 { margin: 0 0 6px; color: var(--muted); font: inherit; font-size: var(--small-text); }
.internship-case-main > h5:not(:first-child) { margin-top: 14px; }
.internship-actions { list-style: none; padding: 0; margin: 0; }
.internship-actions li + li { margin-top: 8px; }
.internship-actions strong { color: var(--strong); font-weight: 400; }
.internship-outcome { padding-top: 12px; border-top: 1px dashed var(--border); }
.internship-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 6px; }
.internship-metrics dt { color: var(--muted); font-size: var(--small-text); }
.internship-metrics dd { margin: 4px 0 0; color: var(--metric); font-size: 1.15rem; }
.internship-outcome > p { color: var(--muted); font-size: var(--small-text); }
:is(.evaluation-page, .education-agent-page) > .workspace-panel { display: grid; grid-template-columns: var(--workspace-copy-width) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: clamp(28px, 3vw, 64px); max-width: none; }
:is(.evaluation-copy, .education-agent-copy) { grid-column: 1; min-width: 0; }
:is(.evaluation-flow, .education-agent-flow) { grid-column: 2; grid-row: 1 / 3; align-self: start; position: sticky; top: calc(var(--workspace-header-height) + var(--workspace-content-top)); min-width: 0; margin: 0; }
.education-agent-flow { --flow-width: 1040; --flow-height: 1226; }
.evaluation-flow-toolbar { color: var(--muted); }
:is(.evaluation-flow, .education-agent-flow) img { display: block; width: min(100%, calc((var(--workspace-content-height) - 2rem) * var(--flow-width, 1040) / var(--flow-height, 1226))); height: auto; margin-inline: auto; }
:is(.evaluation-page, .education-agent-page) .terminal-pagination { grid-column: 1; align-self: end; }
:is(.danzhu-page, .mimojam-page, .games-page) > .workspace-panel { display: grid; grid-template-columns: var(--workspace-copy-width) minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; column-gap: clamp(28px, 3vw, 64px); max-width: none; }
.danzhu-copy, .mimojam-copy, .games-copy { grid-column: 1; min-width: 0; width: 100%; }
:is(.danzhu-page, .mimojam-page, .games-page) .terminal-pagination { grid-column: 1; align-self: end; }
.danzhu-modules { margin: 18px 0 0 var(--workspace-copy-indent); }
.danzhu-module-hint { margin-bottom: 2px; color: var(--muted); font-size: var(--caption-text); }
.danzhu-module { display: grid; grid-template-columns: 2ch minmax(0, 1fr) 1ch; align-items: start; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--border-soft); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.danzhu-module:last-child { border-bottom: 0; }
.danzhu-module-number, .danzhu-module-arrow { color: var(--muted); font-size: var(--small-text); line-height: calc(1rem * 1.8); }
.danzhu-module-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; color: var(--strong); }
.danzhu-module-title > span { color: var(--muted); font-size: var(--small-text); }
.danzhu-module-description { display: block; margin-top: 4px; color: var(--muted); font-size: var(--small-text); line-height: 1.75; }
.danzhu-module-arrow { visibility: hidden; }
.danzhu-module[aria-pressed="true"] :is(.danzhu-module-title, .danzhu-module-number, .danzhu-module-arrow) { color: var(--accent); }
.danzhu-module[aria-pressed="true"] .danzhu-module-description { color: var(--text); }
.danzhu-module[aria-pressed="true"] .danzhu-module-arrow, .danzhu-module:hover .danzhu-module-arrow { visibility: visible; }
.danzhu-module:hover .danzhu-module-title { color: var(--accent); }
.danzhu-module:focus-visible { outline: 1px dashed var(--accent); outline-offset: 4px; }
.prototype-preview { --prototype-top-gap: var(--workspace-content-top); --prototype-ui-height: 80px; --prototype-max-width: 420px; grid-column: 2; grid-row: 1 / 3; position: sticky; top: calc(var(--workspace-header-height) + var(--prototype-top-gap)); min-width: 0; scroll-margin-top: calc(var(--workspace-header-height) + var(--prototype-top-gap)); }
.prototype-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: var(--caption-text); line-height: 1.4; }
.prototype-toolbar h4 { margin: 0; color: var(--muted); font: inherit; }
.prototype-actions { display: flex; gap: 14px; }
.prototype-actions button, .prototype-actions a { padding: 3px 0; border: 0; background: transparent; color: var(--link); font: inherit; cursor: pointer; white-space: nowrap; text-decoration: none; }
.prototype-actions button:hover, .prototype-actions a:hover { color: var(--link-hover); }
.prototype-actions button:focus-visible, .prototype-actions a:focus-visible { outline: 1px dashed var(--accent); outline-offset: 4px; }
.prototype-actions button:disabled { color: var(--muted); cursor: wait; }
/* Fit the complete device between the sticky header and viewport bottom.
   Toolbar/caption height is measured because their text can wrap. */
.prototype-device { position: relative; isolation: isolate; width: min(100%, var(--prototype-max-width), max(0px, calc((var(--workspace-content-height) - var(--prototype-ui-height)) * 1350 / 2760))); aspect-ratio: 1350 / 2760; margin: 0 auto; }
/* One fixed mobile viewport; scale the frame, interface and type together. */
.prototype-stage { position: absolute; inset: 0 auto auto 0; width: 440px; aspect-ratio: 1350 / 2760; transform: scale(var(--prototype-scale, 0)); transform-origin: top left; }
.prototype-screen { position: absolute; left: 5.4815%; top: 2.5725%; width: 88.963%; height: 94.8188%; border-radius: 15% / 7%; overflow: hidden; background: #e9fbf6; }
.prototype-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; background: #ebfffb; color-scheme: light; }
.prototype-status { position: absolute; z-index: 2; top: 0; left: -2px; width: calc(100% + 4px); height: 7.3693%; object-fit: cover; object-position: center 48%; pointer-events: none; }
.prototype-home { position: absolute; z-index: 2; left: 50%; bottom: 8px; transform: translateX(-50%); width: 34%; height: 4px; border-radius: 20px; background: #2a413c; pointer-events: none; }
.prototype-shell { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.prototype-caption { margin-top: 6px; color: var(--muted); font-size: var(--caption-text); line-height: 1.4; text-align: center; }
.mimojam-preview .prototype-screen, .mimojam-preview iframe { background: #000; color-scheme: dark; }
.mimojam-preview .prototype-home { background: #f5f5f5; }
/* Scale the complete game viewport without a decorative phone frame. */
.game-choice { align-items: center; min-height: 54px; }
.game-details { min-height: 0; margin: 16px 0 0 var(--workspace-copy-indent); line-height: 1.75; scroll-margin-top: calc(var(--workspace-header-height) + 20px); }
.game-detail h4 { margin: 0 0 8px; color: var(--strong); font: inherit; }
.game-detail p { color: var(--text); }
.game-detail .game-award { margin-top: 10px; color: var(--link); }
.game-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 0; }
.game-metrics-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.games-preview .prototype-device { width: min(100%, var(--prototype-max-width), max(0px, calc((var(--workspace-content-height) - var(--prototype-ui-height)) / 2))); aspect-ratio: 1 / 2; }
.games-preview .prototype-stage { width: 390px; aspect-ratio: 1 / 2; }
.games-preview .prototype-screen { inset: 0; width: 100%; height: 100%; border-radius: 0; background: var(--bg); }
.games-preview iframe { inset: 0; height: 100%; background: var(--bg); }
.game-loading { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; color: var(--muted); font-size: 1rem; }
.game-loading[hidden] { display: none; }
.terminal-pagination { width: calc(100% - var(--workspace-copy-indent)); max-width: calc(var(--workspace-copy-width) - var(--workspace-copy-indent)); margin: auto 0 0 var(--workspace-copy-indent); padding-top: 18px; }
.page-continue { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 0; border-block: 1px solid var(--border); color: var(--link); }
.page-continue:hover { color: var(--link-hover); }
.page-continue kbd { font: inherit; font-weight: 700; font-synthesis: weight; }
.page-prompt-symbol { color: var(--accent); }
.prompt-cursor { width: .55em; height: 1em; background: currentColor; animation: cursor-blink .8s steps(1) infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 10px; background: var(--bg); z-index: 10; }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Stack the content on smaller screens while keeping the header compact. */
@media (max-width: 1100px) {
  .page-index { display: none; }
  .workspace { --workspace-copy-width: 52rem; }
  :is(.evaluation-page, .education-agent-page, .danzhu-page, .mimojam-page, .games-page) > .workspace-panel { display: flex; max-width: var(--workspace-copy-width); }
  :is(.evaluation-flow, .education-agent-flow) { position: static; align-self: center; width: calc(100% - var(--workspace-copy-indent)); margin: 2rem 0 0 var(--workspace-copy-indent); }
  :is(.evaluation-flow, .education-agent-flow) img { width: 100%; max-width: 720px; }
  .prototype-preview { position: static; align-self: center; width: min(100%, 420px); margin: 2rem 0 .5rem; }
  .terminal-pagination, .danzhu-page .terminal-pagination { padding-top: 2rem; }
}
@media (max-width: 720px) {
  #welcome-screen { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(220px, 1fr) auto; gap: 1.25rem; padding-block: 1.1rem 1.5rem; }
  .welcome-topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem .5rem; }
  .welcome-tools { display: contents; }
  .welcome-message { width: fit-content; gap: 7px; padding: 8px 10px; font-size: 12px; }
  .welcome-star { font-size: 16px; }
  .welcome-topbar .theme-toggle { grid-column: 2; grid-row: 1; }
  .welcome-topbar .entry-menu { grid-column: 1 / -1; grid-row: 2; }
  .welcome { display: contents; }
  .ascii-name { grid-column: 1; grid-row: 2; width: 100%; font-size: clamp(7px, calc(100cqw / 31), 20px); }
  .portrait { grid-column: 1; grid-row: 3; justify-self: center; width: min(100%, 420px); height: clamp(220px, 34svh, 380px); min-height: 0; }
  .welcome-footer { grid-column: 1; grid-row: 4; margin: 0; padding: 0; }
  .welcome-continue { margin-top: .35rem; }
  .entry-menu { width: 100%; font-size: 13px; }
  .entry-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; }
  .entry-option { gap: 4px; min-height: 44px; }
  .workspace { --workspace-copy-indent: 0px; }
  .workspace-header { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 6px 10px; padding-block: .75rem .5rem; }
  .workspace-mark { width: 40px; height: 34px; }
  .workspace-meta { padding-top: 0; font-size: 13px; }
  .workspace-meta > p:not(.workspace-path) { display: none; }
  .workspace-title-line { gap: 6px; }
  .workspace-version { font-size: 12px; }
  .workspace-path { font-size: 12px; }
  .workspace-header .theme-toggle { padding: 4px 7px; }
  .workspace-panel { margin-top: 1rem; }
  .section-command { margin-bottom: 1rem; }
  .internship-project { margin-top: 1.5rem; }
  .internship-project-heading { margin-bottom: 1.25rem; }
  .internship-case-body { gap: 1.25rem; }
  .danzhu-module { gap: 10px; padding-block: 1rem; }
  .danzhu-module-title { gap: .15rem .5rem; }
  .game-metrics { gap: 12px; }
  .contact-content { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .contact-section { margin-top: 2rem; }
  .contact-list > div { grid-template-columns: 6ch minmax(0, 1fr); gap: 12px; }
}
@media (min-width: 1101px) and (max-height: 800px) {
  .section-command { margin-bottom: 10px; }
  .internship-project { margin-top: 14px; }
  .internship-project-heading { margin-bottom: 12px; }
  .internship-case-body { gap: 12px; line-height: 1.7; }
  .internship-case-main > h5:not(:first-child) { margin-top: 10px; }
  .skill-title { margin-bottom: 4px; }
  .skill-description + .skill-title { margin-top: 10px; }
  .skills-output { line-height: 1.65; }
  .game-choice { min-height: 44px; padding-block: 8px; }
  .game-details { margin-top: 12px; }
  .terminal-pagination { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-index::after, .page-index-label { transition: none; }
  html { scroll-behavior: auto; }
  .prompt-cursor { animation: none; }
  .welcome-message, .name-line, .welcome-motto, .entry-options > li, .welcome-continue, .boot-glyph, .welcome-cursor, .portrait canvas { animation: none; }
}
