/* A small, dependency-free stylesheet. Colours live here for easy editing. */
:root {
  color-scheme: dark;
  --background: #21132f;
  --panel: #2b1a3d;
  --cream: #eee9d6;
  --ink: #282035;
  --muted: #bdb0c9;
  --line: #5c456e;
  --lime: #d0ec8c;
  --lavender: #c5a5e8;
  --mono: 'Courier New', Courier, monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; background: var(--background); color: var(--cream); font: 15px/1.65 Arial, Helvetica, sans-serif; background-image: radial-gradient(#7253892b .7px, transparent .7px); background-size: 6px 6px; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
img { max-width: 100%; }
figure { margin: 0; }
button, input, select { border-radius: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; }
.site-width { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.top-strip { background: #150b20; border-bottom: 1px solid #493255; font: 10px/1.4 var(--mono); letter-spacing: 1.5px; color: #aa98b9; }
.top-strip > div { display: flex; justify-content: space-between; padding-block: 9px; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 126px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand > img { width: 62px; height: 62px; object-fit: contain; }
.brand > span { font: 900 31px/1 Arial, sans-serif; letter-spacing: -1.3px; }
.brand small { display: block; margin-top: 7px; font: 11px/1.2 var(--mono); letter-spacing: 7px; color: var(--lavender); }
.header-note { margin: 0; font: 12px/1.65 var(--mono); text-align: right; color: var(--cream); }
.header-note span { color: var(--muted); }
.main-nav { display: flex; align-items: stretch; background: var(--cream); color: var(--ink); border: 2px solid #100b17; outline: 1px solid #7f6893; box-shadow: 3px 4px 0 #12091e; min-height: 50px; }
.main-nav > a { display: flex; align-items: center; gap: 9px; padding: 12px 20px; text-decoration: none; font: bold 12px/1.5 var(--mono); border-right: 1px solid #b5afbc; white-space: nowrap; }
.main-nav > a:hover { background: #d9cce8; }
.main-nav > a[aria-current] { background: var(--lime); box-shadow: inset 0 -3px 0 #718443; }
.nav-icon { font: 18px/1 var(--mono); }
.main-nav small { min-width: 19px; padding: 2px 4px; background: #28203514; font-size: 10px; line-height: 1.2; text-align: center; }
.nav-end { margin-left: auto; padding: 16px 17px; font: 10px/1.5 var(--mono); color: #685d71; white-space: nowrap; }
.breadcrumb { display: flex; align-items: center; gap: 7px; padding-block: 24px 10px; color: #b497ce; font: 11px/1.5 var(--mono); letter-spacing: .3px; }
.cursor { color: var(--lime); }
main { outline: none; min-height: 45vh; }
.eyebrow { font: bold 10px/1.6 var(--mono); letter-spacing: 1.5px; color: var(--lavender); margin-bottom: 16px; }
.little-square { display: inline-block; width: 6px; height: 6px; margin-right: 7px; background: var(--lime); vertical-align: 1px; }
.hero { display: grid; grid-template-columns: 1.16fr 1fr; align-items: center; gap: 65px; padding-block: 29px 47px; }
.hero h1 { font-size: clamp(48px, 5.75vw, 76px); letter-spacing: -3.6px; font-weight: 900; margin-bottom: 24px; line-height: 1.06; }
.hero h1 > span { color: var(--lime); }
.hero-intro { max-width: 420px; color: #d1c4dd; font-size: 16px; line-height: 1.85; margin-bottom: 29px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; gap: 8px; background: var(--lime); color: var(--ink); border: 2px solid #130b1c; box-shadow: inset 1px 1px 0 #f6ffdd, 3px 3px 0 #0d0617; padding: 12px 20px; font: bold 12px/1.5 var(--mono); text-decoration: none; }
.button:hover { background: #e2ff9f; transform: translateY(-1px); }
.button:active { transform: translate(2px, 2px); box-shadow: none; }
.button.outline { color: var(--cream); background: transparent; border: 1px solid #927ca6; box-shadow: 3px 3px 0 #0d0617; }
.button.outline:hover { background: #493255; }
.button.light { background: var(--cream); }
.button.compact { padding: 9px 14px; min-height: 37px; font-size: 11px; }
.hero-footnote { margin-top: 25px; font: 10px/1.5 var(--mono); color: #b29cbe; }
.status-dot { display: inline-block; width: 5px; height: 5px; background: var(--lime); margin-right: 7px; }
.logo-window, .player-window, .history-window, .file-window { border: 2px solid #130b1d; outline: 1px solid #7b6291; box-shadow: 6px 6px 0 #110918; }
.window-bar { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; background: #765194; background: linear-gradient(90deg, #654285, #3c2555); border-bottom: 2px solid #11091d; font: bold 11px/1.5 var(--mono); letter-spacing: .1px; color: #f0e8f9; }
.window-bar i { display: inline-block; background: var(--cream); color: var(--ink); font-style: normal; padding-inline: 4px; margin-right: 6px; }
.window-controls { font: bold 13px/1.2 var(--mono); letter-spacing: 7px; padding-left: 12px; white-space: nowrap; }
.logo-stage { position: relative; height: 327px; display: flex; justify-content: center; align-items: center; overflow: hidden; background-color: #130c1c; background-image: linear-gradient(#86679d15 1px, transparent 1px), linear-gradient(90deg, #86679d15 1px, transparent 1px); background-size: 24px 24px; }
.logo-stage > img { height: 300px; width: 300px; max-width: calc(100% - 48px); object-fit: contain; position: relative; }
.stage-label, .stage-caption { position: absolute; font: 9px/1.2 var(--mono); color: #9a849f; letter-spacing: 1.2px; text-align: center; z-index: 1; }
.stage-label { top: 18px; }
.stage-caption { bottom: 16px; font-size: 8px; color: #bb9ccd; }
.stage-corner { position: absolute; color: #80698d; font: 18px/1 var(--mono); }
.stage-corner.top-left { top: 14px; left: 14px; }
.stage-corner.bottom-right { bottom: 13px; right: 14px; }
.window-status { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--cream); color: #51495b; border-top: 2px solid #120b1c; font: 9px/1.5 var(--mono); }
.directory-section { display: grid; grid-template-columns: repeat(3, 1fr); margin-block: 5px 50px; border: 1px solid var(--line); background: #2b1b3e; }
.directory-card { display: flex; gap: 19px; padding: 24px 24px 22px; text-decoration: none; border-right: 1px solid var(--line); }
.directory-card:last-child { border-right: 0; }
.directory-card:hover { background: #3b274f; }
.directory-number { font: 11px/1.6 var(--mono); color: #9775b6; padding-top: 2px; }
.directory-card > div { flex: 1; }
.directory-card h3 { margin-bottom: 8px; font-size: 18px; letter-spacing: -.2px; }
.directory-card h3 span { float: right; color: var(--lime); font-weight: normal; }
.directory-card p { color: #bdaacb; font-size: 12px; margin-bottom: 12px; }
.directory-card small { font: 9px/1.5 var(--mono); color: var(--lime); }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-title .eyebrow { margin-bottom: 7px; font-size: 9px; }
.section-title h2 { font-size: 28px; letter-spacing: -.8px; margin: 0; }
.text-link { font: bold 11px/1.6 var(--mono); text-underline-offset: 5px; color: var(--lime); }
.text-link:hover { color: #f5ffdb; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.game-card { background: #2b1a3c; border: 1px solid var(--line); display: flex; flex-direction: column; }
.game-art { height: 180px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #130b1d; }
.game-art > img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.game-art > img.portrait-art { object-fit: contain; image-rendering: pixelated; padding: 18px; background: repeating-linear-gradient(0deg, transparent 0 3px, #120b1c22 3px 4px), #43334b; }
.game-art > img[src$="risuli_walk.gif"] { object-fit: contain; image-rendering: pixelated; padding: 35px; background: #262e36; }
.art-label { position: absolute; left: 12px; bottom: 10px; padding: 3px 7px; background: #18101eed; color: var(--cream); border: 1px solid #9886a455; font: 8px/1.5 var(--mono); letter-spacing: 1px; }
.game-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; font: bold 41px/1 var(--mono); color: #ede2cb; background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, #140d251f 3px, #140d251f 4px), #4c335e; }
.game-placeholder > span { display: block; font-size: 9px; letter-spacing: 1.5px; margin-top: 16px; }
.game-placeholder > i { position: absolute; top: 12px; right: 12px; font: normal 6px/1 var(--mono); letter-spacing: 1px; opacity: .7; }
.jam-art { flex-direction: row; align-items: center; gap: 8px; background-color: #ad7651; color: #231629; font-size: 48px; }
.jam-art > span { font-size: 61px; letter-spacing: -5px; margin-top: 0; }
.dice-art { font-size: 80px; background-color: #485c4e; }
.game-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.game-meta { display: flex; justify-content: space-between; gap: 8px; font: 8px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .9px; color: var(--lavender); margin-bottom: 10px; }
.game-card h3 { font-size: 19px; letter-spacing: -.4px; margin-bottom: 11px; }
.game-card p { font-size: 12px; line-height: 1.8; color: #c9b8d4; margin-bottom: 22px; }
.card-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.small-link { font: 10px/1.5 var(--mono); color: var(--cream); text-underline-offset: 3px; }
.small-link:hover { color: var(--lime); }
.archive-page-link { margin-top: 16px; color: var(--muted); }
.builds { border-top: 1px dotted var(--line); margin-top: 16px; padding-top: 10px; font: 10px/1.5 var(--mono); color: #c9b8d4; }
.builds > summary { padding-block: 5px; }
.builds .text-link { display: block; padding: 8px 0; font-size: 10px; overflow-wrap: anywhere; }
.builds .text-link > span { color: var(--muted); font-size: 9px; }
.story-strip { display: flex; align-items: center; gap: 25px; margin-block: 49px 12px; padding: 27px 30px; background: var(--cream); color: var(--ink); border: 2px solid #120b1c; box-shadow: 4px 4px 0 #120b1c; }
.story-key { flex: 0 0 58px; height: 58px; background: #d9d3c5; border: 2px solid #afa89d; box-shadow: inset 2px 2px 0 #fffdf1, 3px 3px 0 #b5af9f; display: grid; place-items: center; font: bold 31px/1 var(--mono); }
.story-strip > div:nth-child(2) { flex: 1; }
.story-strip .eyebrow { color: #736583; font-size: 8px; margin-bottom: 8px; }
.story-strip h2 { font-size: 20px; letter-spacing: -.3px; margin-bottom: 8px; }
.story-strip p:last-child { font-size: 12px; line-height: 1.75; margin-bottom: 0; color: #675c6e; max-width: 540px; }
.story-strip .text-link { color: #48345c; white-space: nowrap; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-block: 27px; margin-top: 65px; }
.footer-brand { text-decoration: none; font: bold 13px/1.4 Arial, sans-serif; letter-spacing: -.4px; white-space: nowrap; }
.footer-brand span { display: block; font: 8px/1.5 var(--mono); letter-spacing: 3px; color: var(--lavender); }
.site-footer > p { font: 10px/1.6 var(--mono); color: #b6a0c5; margin: 0; }
.site-footer > a:last-child { font: 10px/1.5 var(--mono); color: var(--muted); text-underline-offset: 3px; }
.bottom-strip { display: flex; justify-content: space-between; gap: 15px; padding-block: 12px 27px; border-top: 1px dotted #5c456e; font: 8px/1.5 var(--mono); color: #9f87b0; }
.bottom-strip > a { text-underline-offset: 3px; }
.page-heading { padding-block: 28px 34px; }
.page-heading h1 { font-size: clamp(37px, 4.5vw, 56px); letter-spacing: -2.2px; margin-bottom: 17px; }
.page-heading > p:not(.eyebrow) { max-width: 670px; color: #cab7d7; font-size: 15px; line-height: 1.8; margin-bottom: 0; }
.player-window { margin-bottom: 47px; scroll-margin-top: 24px; }
.player-toolbar { background: var(--cream); color: var(--ink); padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 2px solid #130b1d; }
.player-toolbar > span { font: bold 12px/1.5 var(--mono); }
.player-toolbar > div { display: flex; align-items: center; gap: 16px; }
.player-toolbar .small-link { color: var(--ink); white-space: nowrap; }
.small-button { background: #dfdacb; color: var(--ink); border: 1px solid #a39baa; box-shadow: inset 1px 1px 0 #fffcf1; padding: 6px 8px; font: 10px/1.5 var(--mono); }
.small-button:not(:disabled):hover { background: var(--lime); }
.player-stage { height: min(62vw, 670px); min-height: 400px; background: #110b19; position: relative; }
.player-idle { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; height: 100%; text-align: center; background-image: linear-gradient(#7d619618 1px, transparent 1px), linear-gradient(90deg, #7d619618 1px, transparent 1px); background-size: 24px 24px; }
.play-symbol { display: grid; place-items: center; width: 75px; height: 75px; border: 1px solid #6c547f; color: var(--lime); font: 44px/1 var(--mono); margin-bottom: 24px; box-shadow: 5px 5px 0 #06020d; }
.player-idle h2 { font-size: 27px; margin-bottom: 12px; }
.player-idle p { color: var(--muted); font-size: 13px; max-width: 540px; margin-bottom: 25px; }
.player-stage iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.player-status { display: flex; justify-content: space-between; gap: 16px; padding: 10px 13px; background: #302040; color: #c9b3d9; font: 9px/1.5 var(--mono); border-top: 1px solid var(--line); }
.player-window:fullscreen { display: flex; flex-direction: column; outline: none; width: 100%; height: 100%; background: #110b19; border: 0; }
.player-window:fullscreen .player-stage { flex: 1; height: auto; min-height: 0; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.search-box { display: flex; align-items: center; gap: 10px; border: 1px solid #78618b; background: #140c1f; padding-inline: 13px; width: min(100%, 400px); }
.search-box > span { font: 25px/1 var(--mono); color: #b8a2c9; }
.search-box input { width: 100%; min-width: 0; border: 0; color: var(--cream); background: transparent; padding: 12px 0; font: 12px/1.5 var(--mono); outline-offset: 1px; }
.search-box input::placeholder { color: #b59ac5; opacity: 1; }
#game-results { font: 10px/1.5 var(--mono); color: var(--muted); white-space: nowrap; }
.empty-state { padding: 35px; margin: 0; text-align: center; font: 12px/1.8 var(--mono); color: var(--muted); border: 1px dashed var(--line); }
.archive-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font: 10px/1.5 var(--mono); color: var(--lime); }
.archive-stats > span + span::before { content: '+'; margin-right: 18px; color: #8b729d; }
.file-window { background: var(--cream); color: var(--ink); color-scheme: light; }
.file-controls { padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.file-controls .search-box { width: 440px; border-color: #afa2b9; background: #faf6e9; }
.file-controls .search-box > span { color: #726080; }
.file-controls .search-box input { color: var(--ink); }
.file-controls .search-box input::placeholder { color: #74657e; }
.sort-label { display: flex; align-items: center; gap: 10px; white-space: nowrap; font: 11px/1.6 var(--mono); }
.sort-label > select { border: 1px solid #aaa1b3; background: #faf6e9; color: var(--ink); padding: 8px; font-size: 11px; }
.file-window :focus-visible { outline-color: #663c8c; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0; padding: 0 20px 20px; }
.filter-tab { background: transparent; border: 1px solid #bfb5c8; border-right: 0; color: #5c4e69; font: 10px/1.5 var(--mono); padding: 9px 13px; }
.filter-tab:last-child { border-right: 1px solid #bfb5c8; }
.filter-tab[aria-pressed="true"] { color: var(--cream); background: #3b2352; border-color: #3b2352; }
.filter-tab:hover:not([aria-pressed="true"]) { background: #dad1e2; }
.filter-tab > span { padding-left: 6px; opacity: .7; font-size: 9px; }
.table-scroll { width: 100%; overflow-x: auto; }
.file-table { width: 100%; border-collapse: collapse; text-align: left; font: 12px/1.65 var(--mono); }
.file-table th { background: #d8d0e0; border-top: 1px solid #afa1bb; border-bottom: 1px solid #afa1bb; padding: 10px 20px; font-size: 9px; text-transform: uppercase; letter-spacing: .8px; color: #5a4a68; }
.file-table td { padding: 11px 20px; border-bottom: 1px dotted #c3b9ca; }
.file-table tr:nth-child(even) { background: #e6e0d0; }
.file-table tr:hover { background: #dde6c5; }
.file-table td:first-child { width: 68%; min-width: 270px; }
.file-table td:first-child > a { text-decoration: none; color: #432c5c; font-weight: bold; }
.file-table td:first-child > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.file-table td:first-child > small { display: block; margin-left: 31px; color: #736b77; font-size: 8px; }
.file-table td:nth-child(2) { width: 10%; }
.file-table td:nth-child(3) { color: #675b72; font-size: 10px; white-space: nowrap; }
.file-table td:last-child { text-align: right; }
.file-type-icon { display: inline-block; margin-right: 13px; color: #89728f; font-weight: normal; font-size: 17px; vertical-align: -1px; }
.file-type-icon.sound { color: #6e7a45; }
.extension { border: 1px solid #b6a8c1; padding: 2px 5px; color: #756380; font-size: 9px; }
.download-arrow { padding: 5px 10px; text-decoration: none; color: #574063; font-size: 18px; }
.download-arrow:hover { background: #c9d99b; }
.file-window .window-status { border-top: 1px solid #afa1bb; padding: 12px 20px; background: #d8d0e0; }
.file-window .empty-state { color: #766281; border: 0; }
.archive-note { margin-top: 24px; color: var(--muted); font-size: 12px; max-width: 750px; line-height: 1.8; }
.archive-note > a { color: var(--lime); text-underline-offset: 3px; }
.classic-section { margin-top: 45px; scroll-margin-top: 24px; }
.original-games-link { display: inline-block; margin-top: 21px; }
.about-story { display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch; gap: 28px; margin-bottom: 54px; }
.history-body { padding: 31px; background: var(--cream); color: var(--ink); }
.history-body .eyebrow { color: #80618f; font-size: 9px; }
.history-body h2 { font-size: 34px; letter-spacing: -1px; margin-bottom: 20px; }
.history-body > p:not(.eyebrow) { color: #62546c; font-size: 14px; line-height: 1.9; }
.history-body p:last-child { margin-bottom: 0; }
.history-photo { position: relative; border: 1px solid var(--line); background: #100b17; display: flex; flex-direction: column; }
.history-photo > img { display: block; width: 100%; height: 100%; max-height: 390px; object-fit: cover; flex: 1; }
.history-photo > figcaption { font: 9px/1.5 var(--mono); padding: 10px 15px; color: #c2aed0; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px; }
.team-member { position: relative; background: #2b1a3c; border: 1px solid var(--line); padding: 30px 25px; }
.member-number { position: absolute; top: 14px; right: 15px; color: #8b6ea3; font: 10px/1.5 var(--mono); }
.member-key { display: grid; place-items: center; width: 58px; height: 58px; border: 2px solid #9d97a3; background: var(--cream); box-shadow: inset 2px 2px 0 #fffced, 4px 4px 0 #0f071b; color: var(--ink); font: bold 28px/1 var(--mono); margin-bottom: 29px; }
.team-member h3 { font-size: 26px; letter-spacing: -.5px; margin-bottom: 11px; color: var(--lime); }
.team-member p { margin-bottom: 28px; color: #cfbddb; font-size: 14px; }
.member-label { font: 8px/1.5 var(--mono); letter-spacing: 1px; color: #9f85b3; }
.news-section { margin-top: 48px; }
.news-list { border-top: 1px solid var(--line); }
.news-list > article { display: grid; grid-template-columns: 100px 230px 1fr; gap: 20px; padding-block: 23px; border-bottom: 1px solid var(--line); }
.news-list time { color: var(--lavender); font: 10px/1.5 var(--mono); }
.news-list h3 { font-size: 16px; margin: 0; }
.news-list p { font-size: 12px; color: var(--muted); margin: 0; }
.muted { color: var(--muted); font-size: 11px; }
.notice { padding: 30px; border: 1px solid var(--line); }
.loading-message { padding: 50px; font: 14px/1.6 var(--mono); }
.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; }
.skip-link { position: fixed; top: -70px; left: 15px; padding: 12px 20px; background: var(--lime); color: var(--ink); z-index: 20; font-weight: bold; }
.skip-link:focus { top: 15px; }
@media (min-width: 1500px) { .hero { gap: 80px; } }
@media (max-width: 1100px) {
  .site-width { width: calc(100% - 50px); }
  .nav-end { display: none; }
  .main-nav > a { flex: 1; justify-content: center; padding-inline: 15px; }
  .hero { gap: 35px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .9px; }
  .hero h1 { font-size: 61px; }
  .logo-stage { height: 305px; }
  .directory-card { padding: 23px 18px; gap: 13px; }
  .game-grid { gap: 18px; }
  .game-card-body { padding: 17px; }
  .story-strip { padding: 25px; gap: 20px; }
  .story-strip .text-link { max-width: 150px; white-space: normal; }
}
@media (max-width: 800px) {
  .top-strip { font-size: 8px; letter-spacing: .7px; }
  .site-header { min-height: 112px; }
  .hero { gap: 28px; padding-block: 26px 39px; }
  .hero h1 { font-size: 49px; letter-spacing: -2.5px; }
  .hero-intro { font-size: 14px; }
  .hero-actions { gap: 10px; }
  .hero .button { padding: 10px 13px; font-size: 10px; min-height: 40px; }
  .hero-footnote { font-size: 9px; line-height: 1.8; }
  .logo-stage { height: 287px; }
  .logo-stage > img { height: 260px; width: 260px; }
  .stage-label { font-size: 7px; }
  .stage-caption { font-size: 6px; }
  .directory-section { margin-bottom: 37px; }
  .directory-card { padding: 19px 14px; }
  .directory-number { display: none; }
  .directory-card h3 { font-size: 16px; }
  .directory-card p { font-size: 11px; }
  .directory-card small { font-size: 8px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-section .game-grid .game-card:last-child:nth-child(3) { display: none; }
  .story-strip { flex-wrap: wrap; }
  .story-strip > .text-link { margin-left: 78px; max-width: none; }
  .story-strip > .button { margin-left: 78px; }
  .story-strip > div:nth-child(2) { flex-basis: calc(100% - 80px); }
  .site-footer > p { max-width: 235px; text-align: center; }
  .bottom-strip > span:nth-child(2) { display: none; }
  .about-story { grid-template-columns: 1fr; }
  .history-photo > img { max-height: 300px; object-fit: cover; }
  .team-member { padding: 25px 17px; }
  .team-member h3 { font-size: 21px; }
  .team-member p { font-size: 12px; }
  .file-controls { padding: 16px; }
  .filter-tabs { padding: 0 16px 16px; }
  .filter-tab { padding: 8px 10px; }
  .file-table td, .file-table th { padding-inline: 16px; }
  .file-window .window-status > span:last-child { display: none; }
  .player-toolbar { flex-wrap: wrap; }
  .player-toolbar > div { gap: 12px; }
  .player-status { flex-direction: column; gap: 4px; }
  .player-stage { min-height: 400px; }
}
@media (max-width: 600px) {
  .site-width { width: calc(100% - 32px); }
  .top-strip > div > span:last-child { display: none; }
  .site-header { min-height: 98px; }
  .brand { gap: 12px; }
  .brand > span { font-size: 26px; letter-spacing: -.8px; }
  .brand > img { width: 48px; height: 48px; }
  .brand small { font-size: 9px; letter-spacing: 5.5px; }
  .header-note { display: none; }
  .main-nav { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 48px; }
  .main-nav > a { justify-content: center; padding: 12px 8px; font-size: 10px; gap: 6px; border-bottom: 1px solid #b5afbc; }
  .main-nav > a:nth-of-type(3) { border-right: 0; }
  .main-nav > a:nth-of-type(4), .main-nav > a:nth-of-type(5) { border-bottom: 0; }
  .main-nav > a:last-of-type { grid-column: 2 / -1; border-right: 0; }
  .nav-icon { font-size: 15px; }
  .main-nav small { font-size: 8px; min-width: 15px; }
  .breadcrumb { padding-top: 21px; font-size: 9px; }
  .hero { grid-template-columns: 1fr; padding-top: 21px; gap: 28px; }
  .hero h1 { font-size: clamp(45px, 12vw, 66px); line-height: 1.04; margin-bottom: 20px; letter-spacing: -2.5px; }
  .hero .eyebrow { font-size: 8px; margin-bottom: 17px; }
  .hero-intro { max-width: 360px; margin-bottom: 24px; }
  .hero .button { font-size: 10px; padding-inline: 14px; }
  .hero-footnote { margin-top: 20px; font-size: 8px; }
  .logo-window { margin-right: 4px; }
  .logo-stage { height: 260px; }
  .logo-stage > img { height: 238px; width: 238px; }
  .stage-caption { font-size: 7px; }
  .stage-label { font-size: 8px; }
  .directory-section { grid-template-columns: 1fr; margin-top: 3px; }
  .directory-card { padding: 19px; border-right: 0; border-bottom: 1px solid var(--line); gap: 20px; }
  .directory-card:last-child { border-bottom: 0; }
  .directory-number { display: block; font-size: 10px; }
  .directory-card > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 15px; }
  .directory-card h3 { grid-column: 1 / -1; margin: 0; }
  .directory-card p { margin: 0; font-size: 10px; }
  .directory-card small { align-self: end; white-space: nowrap; font-size: 7px; }
  .section-title { gap: 15px; }
  .section-title h2 { font-size: 25px; }
  .section-title .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .section-title > a { font-size: 9px; max-width: 105px; text-align: right; }
  .game-grid { grid-template-columns: 1fr; gap: 23px; }
  .featured-section .game-grid .game-card:last-child:nth-child(3) { display: flex; }
  .game-art { height: 195px; }
  .game-card-body { padding: 21px; }
  .story-strip { padding: 23px 20px; gap: 18px; margin-top: 36px; }
  .story-key { flex-basis: 42px; height: 42px; font-size: 26px; }
  .story-strip > div:nth-child(2) { flex-basis: calc(100% - 62px); }
  .story-strip h2 { font-size: 19px; }
  .story-strip p:last-child { font-size: 11px; }
  .story-strip > .text-link, .story-strip > .button { margin-left: 60px; }
  .site-footer { flex-wrap: wrap; gap: 15px; margin-top: 45px; padding-block: 22px; }
  .site-footer > p { order: 3; flex-basis: 100%; max-width: none; text-align: left; font-size: 9px; }
  .site-footer > a:last-child { font-size: 9px; }
  .bottom-strip { font-size: 7px; }
  .page-heading { padding-block: 24px 30px; }
  .page-heading h1 { font-size: 38px; letter-spacing: -1.7px; }
  .page-heading > p:not(.eyebrow) { font-size: 13px; }
  .archive-stats { font-size: 9px; gap: 8px 12px; }
  .archive-stats > span + span::before { margin-right: 12px; }
  .archive-stats > span:last-child { flex-basis: 100%; }
  .archive-stats > span:last-child::before { display: none; }
  .file-controls { flex-direction: column; align-items: stretch; gap: 13px; }
  .file-controls .search-box { width: 100%; }
  .sort-label { align-self: flex-end; font-size: 10px; }
  .filter-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 16px; }
  .filter-tab { flex: 0 0 auto; white-space: nowrap; padding: 8px 11px; font-size: 9px; }
  .file-table { font-size: 10px; }
  .file-table td:first-child { min-width: 230px; }
  .file-table td, .file-table th { padding-inline: 13px; }
  .file-table td:nth-child(3) { font-size: 9px; }
  .file-table td:last-child { padding-inline: 5px; }
  .file-window .window-status { font-size: 8px; padding: 12px; }
  .player-toolbar > span { font-size: 11px; }
  .player-toolbar > div { gap: 11px; width: 100%; justify-content: space-between; }
  .player-toolbar .small-link, .small-button { font-size: 9px; }
  .player-stage { height: 440px; min-height: 0; }
  .player-idle { padding: 25px 18px; }
  .player-idle h2 { font-size: 25px; }
  .player-idle p { font-size: 12px; }
  .player-status { font-size: 8px; }
  .window-bar { font-size: 9px; }
  .window-controls { font-size: 11px; letter-spacing: 4px; }
  .filter-bar { align-items: stretch; flex-direction: column; gap: 10px; }
  .filter-bar .search-box { width: 100%; }
  #game-results { align-self: flex-end; font-size: 9px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-member { padding: 28px; }
  .team-member h3 { font-size: 27px; }
  .team-member p { font-size: 14px; }
  .history-body { padding: 25px; }
  .history-body h2 { font-size: 30px; }
  .history-body > p:not(.eyebrow) { font-size: 13px; }
  .news-list > article { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } .button:hover, .button:active { transform: none; } }
