:root{--yellow:#c5d34b;--black:#24220f;--pink:#788342;--cream:#e6dfaa;--text:#e6dfaa}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:62px}body{margin:0;background:var(--black);color:white;font-family:Arial,"Microsoft YaHei","PingFang SC",sans-serif}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}header{height:62px;position:sticky;top:0;background:#050505;z-index:10;border-bottom:1px solid #252727}nav{height:100%;display:flex;align-items:center;gap:27px;padding:0 28px;max-width:1500px;margin:auto}nav>a{font-size:14px;color:var(--yellow);font-weight:600;white-space:nowrap}nav>a:hover{color:white}.nav-logo{background:var(--yellow);color:#152022;font-size:30px;width:38px;height:38px;text-align:center;line-height:38px}.nav-end{margin-left:auto;font-size:12px;letter-spacing:2px}.hero{height:328px;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:hidden;background:#142628 url('assets/work-2.png') center 80%/cover no-repeat}.hero-shade{position:absolute;inset:0;background:linear-gradient(#07151ddd,#07151d66)}.logo-tile{position:relative;width:196px;height:210px;background:var(--yellow);color:#17222a;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:6px 6px 0 #0004}.pixel-flower{font-size:86px;line-height:.9;text-shadow:3px 3px 0 #fff}.logo-tile h1{font-size:31px;letter-spacing:3px;margin:14px 0 8px;font-weight:900}.logo-tile>span:last-child{font-size:11px;letter-spacing:4px}.hero>p{position:relative;margin:22px 18px 0;text-align:center;font-size:18px;font-weight:600;text-shadow:0 2px 5px #000}.section-title{text-align:center;background:#030404;padding:26px 15px}.section-title h2{color:var(--yellow);font-size:30px;margin:0;line-height:1.5;letter-spacing:2px}.section-title h2 span{margin-left:10px}.scene-bg{padding:50px 5% 62px;background-color:#1b3337;background-attachment:fixed;background-repeat:no-repeat;background-position:center bottom;background-size:cover}.garden-bg{background-image:linear-gradient(#152e3e55,#152e3e88),url('assets/work-2.png')}.design-bg{background-image:linear-gradient(#217a8288,#126065aa),url('assets/work-4.png')}.cards{max-width:1140px;margin:auto;display:grid;grid-template-columns:1fr 1fr;gap:26px;align-items:stretch}.project{background:linear-gradient(145deg,#fff 20%,var(--cream));border-radius:10px;overflow:hidden;color:var(--text);box-shadow:0 8px 26px #0004;display:flex;flex-direction:column}video{width:100%;display:block;aspect-ratio:16/9;background:#161c1d;object-fit:contain}.card-body{padding:23px 20px 20px;flex:1;display:flex;flex-direction:column}.card-body h3{margin:0 0 12px;font-size:23px;font-weight:500}.card-body>p{font-size:14px;line-height:1.9;margin:0 0 22px;flex:1}.card-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.accent-button{border:0;background:var(--pink);color:white;border-radius:6px;padding:12px 15px;font-size:13px;font-weight:600}.accent-button:hover{background:#b92373}.card-actions>span{font-size:11px;color:#667077;text-align:right}.carousel{position:relative;display:grid;grid-template-columns:23px 1fr 23px;align-items:center;gap:7px;background:var(--pink);border-radius:7px;padding:12px 7px 24px}.prev,.next{border:0;background:none;color:#fff9;font-size:36px;padding:0;line-height:1}.prev:hover,.next:hover{color:white}.thumbs,.static-thumbs{display:grid;grid-template-columns:1fr 1fr;gap:8px}.thumbs button,.static-thumbs button{border:2px solid #fff9;border-radius:4px;overflow:hidden;padding:0;background:#202020;aspect-ratio:16/10}.thumbs img,.static-thumbs img{display:block;width:100%;height:100%;object-fit:cover;image-rendering:pixelated}.counter{position:absolute;bottom:5px;left:0;right:0;text-align:center;color:#fff;font-size:9px;letter-spacing:2px}.static-thumbs{background:var(--pink);padding:12px;border-radius:6px}.design-cover{border:0;padding:0;width:100%;height:300px;position:relative;overflow:hidden;background:#202020}.design-cover img{position:absolute;width:245%;max-width:none;left:-73%;top:-17%;image-rendering:pixelated}.book-cover img{width:200%;left:-50%;top:-12%}.design-cover>span{position:absolute;right:14px;bottom:14px;background:#000b;color:white;font-size:11px;padding:8px 12px;border:1px solid #fff6;border-radius:4px}.about-body{max-width:1140px;margin:auto;padding:55px 0 65px;display:grid;grid-template-columns:1.15fr 1fr;gap:65px;align-items:center}.about-text h3{font-size:26px;line-height:1.5;margin:15px 0 20px}.about-text p{font-size:14px;line-height:2;color:#c1cccc}.about-text .kicker{font-size:10px;color:var(--yellow);letter-spacing:2px}.yellow-button{display:inline-block;color:#111;background:var(--yellow);padding:13px 20px;border-radius:5px;font-weight:600;font-size:12px;margin-top:15px}.cottage{position:relative;height:280px;overflow:hidden;border:1px solid #303a3d;background:#202020;padding:0;border-radius:8px}.cottage img{width:120%;left:-10%;bottom:-7%;position:absolute;image-rendering:pixelated}footer{border-top:1px solid #283035;background:#101517;padding:32px max(5%,calc((100% - 1140px)/2));display:flex;justify-content:space-between;gap:30px}footer strong{font-size:19px;color:var(--yellow);display:block}footer span{font-size:9px;letter-spacing:2px;display:block;color:#9ca9ae;margin-top:10px}.footer-links{display:flex;align-items:center;gap:24px;font-size:12px;color:#ccd4d6}dialog{border:1px solid #344348;padding:50px 20px 15px;background:#151b1d;color:white;max-width:95vw;max-height:95vh;width:1400px}dialog::backdrop{background:#030b10ed}dialog img{display:block;max-width:100%;max-height:78vh;margin:auto;object-fit:contain;image-rendering:pixelated}dialog p{text-align:center;font-size:12px}.close{position:absolute;top:12px;right:20px;background:transparent;color:white;border:1px solid #89958a;padding:5px 12px}a:focus-visible,button:focus-visible{outline:3px solid var(--yellow);outline-offset:4px}@media(max-width:1200px){.about-body{padding:50px 5%;gap:40px}}@media(max-width:800px){nav{gap:18px;padding:0 16px}nav>a{font-size:12px}.nav-end{display:none}.scene-bg{padding:30px 4% 40px;background-attachment:scroll}.cards{gap:18px}.card-body{padding:18px 15px}.card-body h3{font-size:19px}.card-body>p{font-size:12px}.card-actions{flex-wrap:wrap}.design-cover{height:230px}.about-body{gap:25px}.about-text h3{font-size:23px}.cottage{height:240px}}@media(max-width:600px){header{height:56px}html{scroll-padding-top:56px}nav{gap:17px;padding:0 12px}nav>a{font-size:11px}.nav-logo{width:32px;height:32px;line-height:32px;font-size:26px}.hero{height:300px;background-size:auto 100%;background-position:center bottom}.logo-tile{width:164px;height:184px}.pixel-flower{font-size:72px}.logo-tile h1{font-size:27px}.logo-tile>span:last-child{font-size:9px}.hero>p{font-size:13px;margin-top:22px}.section-title{padding:22px 12px}.section-title h2{font-size:25px}.cards{grid-template-columns:1fr;gap:28px}.card-body{padding:20px 17px}.card-body h3{font-size:22px}.card-body>p{font-size:13px}.card-actions{flex-wrap:nowrap}.design-cover{height:255px}.about-body{grid-template-columns:1fr;padding:30px 5% 40px}.about-text h3{font-size:24px}.cottage{height:260px}.cottage img{width:110%;left:-5%}footer{flex-direction:column;padding:28px 5%;gap:25px}.footer-links{justify-content:space-between}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Homepage panorama only: sky (3), moving clouds (2), foreground hills (1). */
.hero{height:auto;aspect-ratio:3880 / 1860;min-height:300px;background:#3babf0;isolation:isolate}
.hero-landscape{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.hero-landscape img{display:block;max-width:none;image-rendering:pixelated;user-select:none}
.hero-sky,.hero-hills{position:absolute;left:50%;top:50%;width:var(--landscape-width);height:var(--landscape-height);transform:translate(-50%,-50%)}
.hero-sky{z-index:0}.hero-hills{z-index:2}
.hero-cloud-track{position:absolute;z-index:1;left:calc((100% - var(--landscape-width))/2 - var(--cloud-width));top:calc(100% - var(--landscape-height));width:calc(2 * var(--cloud-width));height:var(--landscape-height);display:flex;filter:drop-shadow(0 0 var(--cloud-glow) rgba(255,238,154,1));animation:hero-cloud-drift var(--cloud-duration) linear infinite;will-change:transform}
.hero-cloud-track img{flex:none;width:var(--cloud-width);height:var(--landscape-height)}
@keyframes hero-cloud-drift{from{transform:translateX(0)}to{transform:translateX(var(--cloud-width))}}
.hero.landscape-paused .hero-cloud-track{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.hero-cloud-track{animation:none}}

.hero-hills{top:auto;bottom:0;transform:translateX(-50%)}
.hero-sky{inset:0;width:100%;height:100%;transform:none;object-fit:cover}

/* One game per slide: gameplay on the left, UI and screenshots on the right. */
.logo-tile h1{font-size:25px;letter-spacing:1px;text-align:center;line-height:1.1;max-width:170px}
.game-showcase{max-width:1140px;margin:auto;touch-action:pan-y}
.game-switcher{display:flex;align-items:center;justify-content:center;gap:20px;margin-bottom:12px}
.switch-game{width:44px;height:44px;border:1px solid #c5d34b80;border-radius:50%;background:#080b0c;color:var(--yellow);font-size:30px;line-height:1}
.game-tabs{display:flex;gap:8px;padding:5px;border:1px solid #ffffff30;border-radius:32px;background:#080b0ce6}
.game-tabs button{border:0;border-radius:24px;padding:12px 22px;background:transparent;color:white;font-size:16px}
.game-tabs button[aria-selected="true"]{background:var(--yellow);color:#111}
.game-instruction{text-align:center;font-size:13px;color:#e3e9e9;margin:0 0 26px;text-shadow:0 1px 4px #000}
.game-panel .card-body>p{font-size:16px;line-height:1.75}
.game-panel .card-body>.media-label{font-size:13px;letter-spacing:1.5px;color:#6a6e71;flex:none;margin:0 0 12px}
.game-panel .card-actions>span{font-size:13px}
.game-panel .accent-button{font-size:14px}
.screenshot-stage{display:block;width:100%;aspect-ratio:16/9;border:0;padding:0;background:#161c1d;cursor:zoom-in}
.screenshot-stage img{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.screenshot-heading{display:flex;gap:12px;justify-content:space-between;align-items:flex-start}
.screenshot-heading h3{font-size:20px}
.screenshot-controls{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:13px}
.screenshot-controls button{border:0;background:var(--pink);color:white;width:30px;height:30px;border-radius:4px;font-size:24px}
.screenshot-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;gap:8px;height:108px;overflow-x:hidden;overflow-y:auto;touch-action:pan-y;padding:10px;background:var(--pink);border-radius:6px;scrollbar-width:thin}
.screenshot-thumbs button{flex:0 0 110px;aspect-ratio:16/10;border:2px solid #ffffff70;border-radius:4px;background:#202020;padding:0;overflow:hidden}
.screenshot-thumbs button[aria-pressed="true"]{border-color:var(--yellow);box-shadow:0 0 0 1px var(--yellow)}
.screenshot-thumbs img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.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}
@media(max-width:700px){.game-panel{grid-template-columns:1fr}.game-switcher{gap:8px}.game-tabs button{font-size:14px;padding:10px 12px}.switch-game{width:36px;height:36px;flex-shrink:0}.screenshot-heading{flex-wrap:wrap}.game-instruction{font-size:12px}}

/* Game showcase: birch woodland palette. */
#games{--game-teal:#414b29;--game-deep:#292f18;--game-gold:#c5d34b;--game-ink:#24220f;--game-copy:#e6dfaa}
#games .project{background:var(--game-teal);color:var(--game-copy);border:2px solid #8e9850;box-shadow:inset 0 0 0 2px var(--game-deep),0 8px 26px #0004}
#games .card-body h3{color:#d8df7a;font-weight:600}
#games .card-body>.media-label,#games .card-actions>span{color:#c4c790}
#games .accent-button,#games .screenshot-controls button{background:var(--game-gold);color:var(--game-ink);border:1px solid #d8df7a}
#games .accent-button:hover,#games .screenshot-controls button:hover{background:#dbe580}
#games .screenshot-thumbs{background:var(--game-deep);border:1px solid #8e9850;scrollbar-color:var(--game-gold) var(--game-deep)}
#games .screenshot-thumbs button{border-color:#737e44}
#games .screenshot-thumbs button[aria-pressed="true"]{border-color:var(--game-gold);box-shadow:0 0 0 1px var(--game-gold)}
#games .game-tabs{background:var(--game-deep);border-color:#8e9850}
#games .game-tabs button{color:var(--game-copy)}
#games .game-tabs button[aria-selected="true"]{background:var(--game-gold);color:var(--game-ink)}
#games .switch-game{background:var(--game-deep);border-color:var(--game-gold);color:var(--game-gold)}
#games .game-instruction{color:var(--game-copy)}
#games button:focus-visible{outline:3px solid #d8df7a;outline-offset:3px}

/* Site-wide woodland colors; media retain their original artwork. */
body{color:#e6dfaa;background:#000}
header,.section-title{background:#000;border-color:#596134}
nav>a:hover,.footer-links a:hover{color:#f0e9bd}
.nav-logo,.logo-tile{color:#292f18;background:#c5d34b}
.pixel-flower{text-shadow:3px 3px 0 #e6dfaa}
.hero>p{color:#f0e9bd;text-shadow:0 2px 5px #24220f}
.scene-bg{background-color:#000}
.garden-bg{background-image:linear-gradient(#000 0%,#0009 50%,#0006 100%),url('assets/work-2.png')}
#about{background:#000}
.about-text h3{color:#d8df7a}
.about-text p{color:#d5d2a5}
.yellow-button{color:#24220f}
.cottage{border-color:#737e44;background:#292f18}
footer{background:#000;border-color:#596134}
footer span,.footer-links{color:#c4c790}
video,.screenshot-stage{background:#000}
dialog{background:#000;color:#e6dfaa;border-color:#8e9850}
dialog::backdrop{background:#000e}
.close{color:#d8df7a;border-color:#8e9850}
::selection{background:#c5d34b;color:#24220f}

/* Reuse the homepage landscape behind the game showcase. */
.garden-bg{position:relative;isolation:isolate;background:#3babf0;overflow:hidden}
.garden-bg .game-showcase{position:relative;z-index:1}
.garden-bg.landscape-paused .hero-cloud-track{animation-play-state:paused}
/* Friendly pixel typography, hosted with the site. */
@font-face{font-family:'Pixelify Sans';font-style:normal;font-weight:400 500;font-display:swap;src:url('assets/fonts/pixelify-regular.ttf') format('truetype')}
@font-face{font-family:'Pixelify Sans';font-style:normal;font-weight:600 900;font-display:swap;src:url('assets/fonts/pixelify-bold.ttf') format('truetype')}
body{font-family:'Pixelify Sans',monospace;letter-spacing:.15px}
button,input,select,textarea{font-family:inherit}
.game-panel .card-body>p,.about-text p{font-size:18px;line-height:1.65}
.game-panel .card-body>.media-label,.game-panel .card-actions>span{font-size:14px}
.game-instruction,footer span,.footer-links,dialog p{font-size:14px}
.logo-tile h1{font-size:28px;letter-spacing:1px}
.nav-logo,.pixel-flower{font-family:Arial,sans-serif}
/* Keep the animated scenery viewport-fixed while cards scroll over it.
   Clip the fixed layer to GAME so it never covers adjacent sections. */
.garden-bg{clip-path:inset(0)}
.garden-bg>.hero-landscape{position:fixed;inset:-25vh 0 0}

/* User-provided birch artwork for the homepage banner only. */
.hero{background:#414b29 url('assets/hero-cover-page-v2.png') center center / cover no-repeat}
.garden-stall{position:absolute;z-index:3;left:50%;bottom:0;width:var(--landscape-width);height:var(--landscape-height);transform:translateX(-50%);pointer-events:none;image-rendering:pixelated}

.garden-stall{image-rendering:auto}

/* Game navigation at the outer edges of the full-width scene. */
#games .garden-bg{padding-left:max(64px,5%);padding-right:max(64px,5%)}
#games .garden-bg>.switch-game{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:48px;height:48px}
#games #previous-game{left:12px}
#games #next-game{right:12px}
@media(max-width:700px){#games .garden-bg{padding-left:46px;padding-right:46px}#games .garden-bg>.switch-game{width:36px;height:44px}#games #previous-game{left:5px}#games #next-game{right:5px}}

/* Gameplay uses the same large dialog as screenshots. */
#lightbox [hidden],.game-video-placeholder[hidden]{display:none}
#lightbox video{display:block;width:100%;height:auto;max-height:78vh;aspect-ratio:auto;object-fit:contain;background:#000}
.game-video-placeholder{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#000}
/* Reveal outer game arrows on hover, with translucent white styling. */
#games .garden-bg>.switch-game{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.45);color:rgba(255,255,255,.85);opacity:0;pointer-events:none;transition:opacity .2s ease,background-color .2s ease}
#games:hover .garden-bg>.switch-game,#games .garden-bg>.switch-game:focus-visible{opacity:1;pointer-events:auto}
#games .garden-bg>.switch-game:hover{background:rgba(255,255,255,.24);color:#fff;border-color:rgba(255,255,255,.75)}
#games .garden-bg>.switch-game:focus-visible{outline-color:#fff}
@media(hover:none){#games .garden-bg>.switch-game{opacity:1;pointer-events:auto}}
@media(prefers-reduced-motion:reduce){#games .garden-bg>.switch-game{transition:none}}
/* Monochrome theme. */
:root{--yellow:#ffffff;--black:#000000;--pink:#eeeeee;--cream:#000000;--text:#e5e5e5;--cottage-red:#eeeeee;--cottage-white:#000000}
body{background:var(--cottage-white);color:#e5e5e5}
header,footer{background:#000000;border-color:#333333}
nav>a,nav>a:hover,footer strong,footer span,.footer-links,.footer-links a:hover{color:#000000}
.nav-logo,.logo-tile{background:#000000;color:#eeeeee}
.logo-tile{box-shadow:6px 6px 0 #00000066}
.pixel-flower{text-shadow:3px 3px 0 #777777}
.hero>p{color:#000000;text-shadow:0 2px 5px #000000}
.section-title{background:#000000}
.section-title h2{color:#eeeeee}
#games{--game-teal:#000000;--game-deep:#111111;--game-gold:#eeeeee;--game-ink:#000000;--game-copy:#e5e5e5}
#games .project{background:#000000;color:#e5e5e5;border-color:#eeeeee;box-shadow:0 8px 26px #00000040}
#games .card-body h3{color:#eeeeee}
#games .card-body>.media-label,#games .card-actions>span{color:#b8b8b8}
#games .accent-button,#games .screenshot-controls button{background:#eeeeee;color:#000000;border-color:#eeeeee}
#games .accent-button:hover,#games .screenshot-controls button:hover{background:#cccccc;border-color:#cccccc}
#games .screenshot-thumbs{background:#111111;border-color:#555555;scrollbar-color:#eeeeee #111111}
#games .screenshot-thumbs button{border-color:#555555}
#games .screenshot-thumbs button[aria-pressed="true"]{border-color:#eeeeee;box-shadow:0 0 0 1px #eeeeee}
#games button:focus-visible,a:focus-visible,button:focus-visible{outline-color:#eeeeee}
#games .garden-bg>.switch-game:focus-visible{outline-color:#fff}
#about{background:#000000}
.about-text h3,.about-text .kicker{color:#eeeeee}
.about-text p{color:#cccccc}
.yellow-button{background:#eeeeee;color:#000000}
.cottage{border-color:#eeeeee}
dialog{background:#000000;color:#e5e5e5;border-color:#eeeeee}
.close{background:#eeeeee;color:#000000;border-color:#eeeeee}
dialog::backdrop{background:#000000e8}
::selection{background:#eeeeee;color:#000000}

nav>a,nav>a:hover,footer strong,footer span,.footer-links,.footer-links a:hover{color:#eee}
#games .project{background:#171717;border-color:#444;color:#e5e5e5}
.hero>p{color:#fff}
#games .screenshot-thumbs button[aria-pressed="true"]{border-color:#fff;box-shadow:0 0 0 1px #fff}
/* Text sampled from the supplied game UI: #ece1a7. */
body,nav>a,nav>a:hover,footer strong,footer span,.footer-links,.footer-links a:hover,.logo-tile,.hero>p,.section-title h2,.about-text h3,.about-text .kicker,.about-text p,dialog,.close{color:#ece1a7}
#games .project,#games .card-body h3,#games .card-body>.media-label,#games .card-actions>span{color:#ece1a7}
#games .accent-button,#games .screenshot-controls button,.yellow-button,.close{color:#ece1a7;background:#242424}
#games .accent-button:hover,#games .screenshot-controls button:hover{background:#383838;color:#ece1a7}

.game-description{font-size:18px;line-height:1.65;flex:1;margin-bottom:22px}
.game-description p{margin:0 0 20px}
.game-description h4{font-size:19px;line-height:1.4;margin:26px 0 10px;color:inherit}
.game-description p:last-child{margin-bottom:0}

/* Compact project copy and a separately scrollable reading window. */
.description-more{display:block;margin-top:12px;padding:0 14px 6px;min-width:44px;min-height:36px;border:1px solid #888;border-radius:5px;background:#242424;color:#ece1a7;font-size:24px;line-height:1;letter-spacing:3px}
.description-more:hover{background:#383838}
#description-dialog{width:760px;max-width:calc(100vw - 32px);height:80vh;height:80dvh;max-height:900px;padding:0;overflow:hidden;border:1px solid #888;background:#171717;color:#ece1a7}
#description-dialog[open]{display:flex;flex-direction:column}
.description-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;padding:18px 24px;border-bottom:1px solid #444}
#description-title{margin:0;font-size:24px;line-height:1.3}
#description-dialog .close{position:static;flex-shrink:0;font-size:16px}
.description-dialog-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:24px 28px 32px;scrollbar-color:#ece1a7 #242424}
#description-dialog p{font-size:18px;line-height:1.7;text-align:left;margin:0 0 22px}
#description-dialog h4{font-size:21px;line-height:1.4;margin:28px 0 12px}
#description-dialog p:last-child{margin-bottom:0}
@media(max-width:600px){.description-dialog-header{padding:16px}#description-title{font-size:20px}.description-dialog-content{padding:20px}#description-dialog p{font-size:17px}}

/* Homepage computer frame animation and portfolio name. */
.logo-tile .portfolio-logo{display:block;width:300px;height:300px;object-fit:contain;image-rendering:pixelated;margin:-90px 0 -75px;flex-shrink:0}
.logo-tile h1{font-size:26px;letter-spacing:0;margin:0 0 8px;white-space:nowrap}
@media(max-width:600px){.logo-tile .portfolio-logo{width:260px;height:260px;margin:-76px 0 -64px}.logo-tile h1{font-size:23px}}

/* Small computer icon in the existing home navigation link. */
.nav-logo{display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}
.nav-logo .nav-computer{display:block;width:60px;height:60px;max-width:none;flex-shrink:0;object-fit:contain;image-rendering:pixelated}
@media(max-width:600px){.nav-logo .nav-computer{width:52px;height:52px}}

/* Supplied pixel texture replaces the dark interface surfaces. */
body,header,footer,.section-title,#games .project,#games .screenshot-thumbs,
#games .screenshot-thumbs button,video,.screenshot-stage,.game-video-placeholder,
#lightbox,#lightbox video,#description-dialog,
#games .accent-button,#games .screenshot-controls button,.description-more,.close{
  background-color:#0a977a;
  background-image:url('assets/cover-solid.png');
  background-position:left top;
  background-size:var(--texture-size);
  background-repeat:no-repeat;
}
#games .accent-button:hover,#games .screenshot-controls button:hover,.description-more:hover{
  background-color:#0a977a;
  background-image:linear-gradient(#ffffff12,#ffffff12),url('assets/cover-solid.png');
}
#games .screenshot-thumbs,.description-dialog-content{scrollbar-color:#ece1a7 #0a977a}
dialog::backdrop{background:rgba(3,35,40,.88)}
.nav-logo,.logo-tile{background:transparent;box-shadow:none}
.logo-tile h1,.logo-tile>span:last-child{text-shadow:0 2px 3px #173d37}

/* Match all existing interface border lines to the ivory text. */
header,footer,.section-title,#games .project,
#games .screenshot-thumbs,#games .screenshot-thumbs button,
#games .screenshot-thumbs button[aria-pressed="true"],
#games .accent-button,#games .accent-button:hover,
#games .screenshot-controls button,#games .screenshot-controls button:hover,
#games .garden-bg>.switch-game,#games .garden-bg>.switch-game:hover,
.description-more,.description-more:hover,.close,
#lightbox,#description-dialog,.description-dialog-header{border-color:#ece1a7}
#games .screenshot-thumbs button[aria-pressed="true"]{box-shadow:0 0 0 1px #ece1a7}
#games button:focus-visible,#games .garden-bg>.switch-game:focus-visible,
a:focus-visible,button:focus-visible{outline-color:#ece1a7}

/* Game-card textures use the supplied image's native 1920 × 2400 size.
   CSS backgrounds clip to each surface without tiling or scaling. */
#games .project,#games .project video,#games .screenshot-stage,
#games .game-video-placeholder,#games .screenshot-thumbs,
#games .screenshot-thumbs button,#games .accent-button,
#games .screenshot-controls button,#games .description-more{
  background-size:var(--texture-size);
  background-repeat:no-repeat;
  background-position:left top;
}
/* Display the supplied 48 x 42 computer at 1.15x, hiding its transparent canvas. */
.nav-logo{position:relative;width:56px;height:50px}
.nav-logo .nav-computer-static{position:absolute;display:block;width:345px;height:345px;max-width:none;left:-27.6px;top:-65.55px;image-rendering:pixelated}

/* A 10px texture cell matches the computer sprite's 3px cell. */
:root{--texture-size:576px 720px}
@media(max-width:600px){:root{--texture-size:499.2px 624px}}
body,header,footer,.section-title,#games .project,#games .project video,#games .screenshot-stage,#games .game-video-placeholder,#games .screenshot-thumbs,#games .screenshot-thumbs button,video,.screenshot-stage,.game-video-placeholder,#lightbox,#lightbox video,#description-dialog,#games .accent-button,#games .screenshot-controls button,#games .description-more,.description-more,.close{background-repeat:repeat}
/* Quiet, framed text panels shared by both games. */
#games .project .card-body{background:#123c38;border:2px solid #ece1a7;margin:12px;padding:20px;min-width:0}
#games .card-body .accent-button,#games .card-body .description-more,#games .card-body .screenshot-controls button{background:#123c38}
#games .card-body .accent-button:hover,#games .card-body .description-more:hover,#games .card-body .screenshot-controls button:hover{background:#20534b}
/* One scene pixel is the common unit for both 3px-source computer sprites. */
:root{--pixel-unit:3px}
header{height:max(62px,calc(var(--pixel-unit)*18))}
.nav-logo{width:calc(var(--pixel-unit)*16);height:calc(var(--pixel-unit)*14)}
.nav-logo .nav-computer-static{width:calc(var(--pixel-unit)*100);height:calc(var(--pixel-unit)*100);left:calc(var(--pixel-unit)*-8);top:calc(var(--pixel-unit)*-19)}
.logo-tile{width:max(196px,calc(var(--pixel-unit)*62));height:max(210px,calc(var(--pixel-unit)*70))}
.logo-tile .portfolio-logo{width:calc(var(--pixel-unit)*100);height:calc(var(--pixel-unit)*100);margin:calc(var(--pixel-unit)*-30) 0 calc(var(--pixel-unit)*-25)}
header,footer,.section-title,#games .project,#games .project .card-body,#games .screenshot-thumbs,#games .screenshot-thumbs button,#games .accent-button,#games .screenshot-controls button,#games .garden-bg>.switch-game,.description-more,.close,#lightbox,#description-dialog,.description-dialog-header{border-width:var(--pixel-unit)}
#games .screenshot-thumbs button[aria-pressed="true"]{box-shadow:none}
a:focus-visible,button:focus-visible{outline-width:var(--pixel-unit)}
#lightbox>img{touch-action:pan-y;user-select:none}
#lightbox .lightbox-step{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:44px;height:56px;padding:0;background:#123c38cc;color:#ece1a7;border:var(--pixel-unit) solid #ece1a7;font-size:24px}
#lightbox .lightbox-prev{left:6px}#lightbox .lightbox-next{right:6px}
#lightbox[data-mode="video"] .lightbox-step{display:none}
/* Frontmost decoration inside the game section; never intercept controls. */
.garden-bg>.foreground-chimes{position:absolute;inset:0 0 auto;height:0;z-index:100;pointer-events:none}
.foreground-chimes canvas{position:absolute;top:0;height:auto;transform-origin:50% 0;image-rendering:pixelated;pointer-events:none}
.garden-bg>.foreground-chimes{container-type:inline-size}
/* Lift the canopy above the cards and overlap the scene boundary to avoid hairlines. */
.garden-bg>.foreground-chimes{top:calc(-1px - var(--pixel-unit)*6)}
#games>.section-title{border-bottom:0;margin-bottom:-1px}
.garden-bg{background-color:#58bde4}

/* Shared screenshot crop ratio for both games. */
.screenshot-stage{aspect-ratio:16/10}
#games>.section-title h2{font-size:38px}@media(max-width:600px){#games>.section-title h2{font-size:32px}}
header nav>a:not(.nav-logo){font-size:18px}header nav>.nav-end{font-size:16px}@media(max-width:900px){header nav>a:not(.nav-logo){font-size:16px}}@media(max-width:600px){header nav>a:not(.nav-logo){font-size:14px}}
.hero{background-size:contain;background-color:#000;background-position:center center}
.logo-tile h1{font-size:34px;line-height:1.2}.logo-tile>span:last-child{font-size:16px;font-weight:700;letter-spacing:4px}.logo-tile h1,.logo-tile>span:last-child{color:#fff1b8;text-shadow:2px 2px 0 #173d37,-1px -1px 0 #173d37,1px -1px 0 #173d37,-1px 1px 0 #173d37}@media(max-width:600px){.logo-tile h1{font-size:30px}.logo-tile>span:last-child{font-size:14px}}

.hero{height:auto;min-height:0;aspect-ratio:3880/1470;padding:0;border:0;background-size:100% 100%;background-repeat:no-repeat}#games .garden-bg>.hero-landscape{filter:blur(5px)}
#games .screenshot-controls button{display:grid;place-items:center;padding:0;font-size:0;line-height:1}#games .screenshot-controls button::before{content:"";display:block;width:12px;height:18px;background:currentColor;clip-path:polygon(66.667% 0,100% 0,100% 20%,66.667% 20%,66.667% 40%,33.333% 40%,33.333% 60%,66.667% 60%,66.667% 80%,100% 80%,100% 100%,66.667% 100%,66.667% 80%,33.333% 80%,33.333% 60%,0 60%,0 40%,33.333% 40%,33.333% 20%,66.667% 20%)}#games #next-shot::before{transform:scaleX(-1)}#games #shot-count{line-height:1;text-align:center}
