/* The stage is transparent to pointers; the projects keep their full hit areas. */
.intro-bottom { justify-content: space-between; align-items: center; min-height: 112px; margin-top: 4px; gap: 12px 24px; }
.crow-world { position: relative; flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 112px; }
.crow-button { position: relative; flex: 0 0 128px; display: block; width: 128px; height: 112px; padding: 0; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.crow-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.pixel-crow { position: absolute; left: 0; top: 12px; width: 108px; height: 80px; overflow: visible; image-rendering: pixelated; }
.crow-canvas { display: none; width: 128px; height: 112px; image-rendering: pixelated; }
.pixels-ready .crow-canvas { display: block; }
.pixels-ready .pixel-crow { display: none; }
.crow-hint { position: absolute; right: 0; top: 21px; font-size: 13px; color: var(--muted); transform: rotate(-8deg); }
.crow-button:hover .crow-hint, .crow-button:focus-visible .crow-hint { color: var(--ink); }
.crow-button[aria-expanded="true"] .crow-hint { visibility: hidden; }
.crow-speech { position: absolute; left: 138px; top: 14px; display: grid; align-items: center; width: min(310px, calc(100% - 138px)); padding: 13px 16px; background: #f9f8f1; border: 1px solid #b7c1ad; border-radius: 12px; font-size: 15px; line-height: 1.4; box-shadow: 3px 4px 0 #cbd5c3; transform-origin: -10px 42px; animation: crow-speech-in 300ms cubic-bezier(.2,.8,.25,1) both; }
.crow-speech::before { content: ""; position: absolute; left: -7px; top: 35px; width: 12px; height: 12px; background: #f9f8f1; border-left: 1px solid #b7c1ad; border-bottom: 1px solid #b7c1ad; transform: rotate(45deg); }
.crow-line { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(3px); transition: opacity 130ms ease, transform 180ms ease, visibility 130ms; }
.crow-line[data-active="true"] { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 200ms 65ms ease, transform 240ms 65ms ease, visibility 0s; }
@keyframes crow-speech-in { from { opacity: 0; transform: translate(-8px, 4px) scale(.9); } to { opacity: 1; transform: translate(0, 0) scale(1); } }
.crow-speech a { text-decoration: underline; text-underline-offset: 3px; }
.crow-speech[hidden] { display: none; }
.projects { position: relative; }
.tab-world { position: absolute; left: 0; top: -72px; width: 100%; height: 72px; pointer-events: none; image-rendering: pixelated; z-index: 2; }
.arrange-button { flex-shrink: 0; }
.arcade { padding: 28px 0 16px; margin-top: 10px; border-top: 1px solid #b7c1ad; scroll-margin-top: 30px; }
.arcade-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.arcade-heading h2 { font-size: 31px; font-weight: 600; }
.arcade-heading h2 > span { display: inline-block; margin-left: 10px; color: #7d895d; font-size: 28px; vertical-align: 1px; }
.arcade-heading p { color: var(--muted); font-size: 15px; }
.game-shelf { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 11px; padding: 0 4px 14px; border-bottom: 5px solid #b2bea6; }
.game-cart { --cart: #b67f65; --cart-ink: #422c23; --cart-paper: #e4c8a1; position: relative; display: flex; flex-direction: column; padding: 9px 10px 12px; background: var(--cart); color: var(--cart-ink); border-radius: 7px 7px 3px 3px; border: 1px solid #20271f2b; box-shadow: inset 3px 0 0 #ffffff1a, inset -3px 0 0 #20271f0d; transition: transform 160ms var(--ease-out); }
.cart-art { display: grid; place-items: center; height: 69px; margin-bottom: 11px; background: var(--cart-paper); border: 1px solid #20271f26; border-radius: 3px; }
.cart-art svg { width: 64px; height: 40px; fill: var(--cart-ink); shape-rendering: crispEdges; }
.cart-art .art-cut { fill: var(--cart-paper); }
.game-cart strong { font-size: 17px; font-weight: 650; letter-spacing: -.035em; }
.cart-action { white-space: nowrap; display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; }
.cart-action > span { font-size: 16px; line-height: 1; }
.cart-doom3 { --cart: #a4aba3; --cart-ink: #28372e; --cart-paper: #d7ddd1; }
.cart-quake { --cart: #b7a478; --cart-ink: #443b23; --cart-paper: #e5d9b5; }
.cart-quake2 { --cart: #91a8b3; --cart-ink: #253e4b; --cart-paper: #d2e0df; }
.cart-quake3 { --cart: #ae93a2; --cart-ink: #49313f; --cart-paper: #e5d5dc; }
.cart-monkey { --cart: #87aaa1; --cart-ink: #24443b; --cart-paper: #d3e1ca; }
.cart-hopper { --cart: #a8ba88; --cart-ink: #2f4528; --cart-paper: #dce6bf; }
.cart-preview { position: absolute; top: -7px; right: 8px; padding: 2px 5px; border: 1px solid #20271f26; border-radius: 3px; background: var(--cart-paper); font-size: 10px; color: var(--cart-ink); }
@media (hover: hover) and (pointer: fine) { .game-cart:hover { transform: translateY(-5px); } }
.game-cart:focus-visible { transform: translateY(-5px); }
@media (min-width: 681px) { .crow-world { margin-left: 8px; } }
@media (max-width: 1050px) and (min-width: 681px) { .game-cart { padding-inline: 8px; } .game-cart strong { font-size: 15px; } .game-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 680px) {
  .intro-bottom { position: relative; min-height: 156px; margin-top: 0; align-items: flex-start; }
  .crow-world { flex-direction: column; align-items: flex-start; gap: 0; }
  .crow-speech { left: 108px; top: 4px; width: calc(100% - 108px); max-width: 310px; font-size: 14px; padding: 10px 12px; transform-origin: -10px 52px; }
  .crow-speech::before { top: 45px; }
  .intro-bottom .arrange-button { position: absolute; right: 0; top: auto; bottom: 0; }
  .crow-hint { right: 4px; }
  .arcade { margin-top: 18px; padding-top: 24px; }
  .arcade-heading { align-items: baseline; margin-bottom: 18px; gap: 10px; }
  .arcade-heading h2 { font-size: 28px; }
  .arcade-heading h2 > span { display: none; }
  .arcade-heading p { max-width: 120px; text-align: right; font-size: 13px; }
  .game-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 10px; padding-inline: 0; }
  .game-cart { padding: 7px 8px 10px; }
  .cart-art { height: 58px; margin-bottom: 8px; }
  .game-cart strong { font-size: 16px; }
  .cart-action { font-size: 11px; }
  .cart-preview { font-size: 9px; }
}
@media (max-width: 360px) { .game-cart strong { font-size: 14px; } .cart-action > span { display: none; } }
@media (prefers-reduced-motion: reduce) { .crow-world *, .game-cart { animation: none; transition: none; } .game-cart:hover, .game-cart:focus-visible { transform: none; } }
