.game-shelf {
  container-type: inline-size;
  min-width: 0;
  width: 100%;
}
.shelf-picker { margin-bottom: 13px; }
.shelf-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
  color: #455f50;
  font: 700 0.68rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.shelf-heading::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--line);
}
.game-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.game-tab {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  min-width: 0;
  background: #f3f0e5;
  color: #2e4639;
  border: 1px solid #afbbab;
  border-radius: 4px;
  box-shadow: 0 2px 0 #d5d7c9;
}
.game-tab img {
  display: block;
  width: 100%;
  height: clamp(22px, 4.8cqw, 34px);
  object-fit: cover;
  object-position: 50% 60%;
  image-rendering: pixelated;
}
#play-porch-light img { object-position: 55% 40%; }
#play-behind-the-button img { object-position: 78% 49%; }
.tab-label { display: block; padding: 7px 6px 8px; }
.tab-label strong {
  display: block;
  font: 650 clamp(12px, 2.22cqw, 15px)/1.2 var(--sans);
  letter-spacing: -0.025em;
}
.tab-label small {
  display: block;
  color: #4e6456;
  margin-top: 3px;
  font: 0.7rem/1.2 var(--sans);
}
.game-tab:hover { background: #e6eddd; border-color: #637d6a; }
.game-tab[aria-selected="true"] {
  background: #325842;
  color: #fff9e9;
  border-color: #283f31;
  box-shadow: 0 2px 0 #263d30;
}
.game-tab[aria-selected="true"] small { color: #e1e9d6; }
.game-tab[aria-selected="true"]::after {
  content: '✓' / '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e4f0d9;
  color: #284b38;
  text-align: center;
  font: 800 11px/16px var(--sans);
}
.work-game-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 9px; }
.work-game-links a {
  padding: 3px 0;
  color: var(--forest);
  font-size: .83rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.projects { padding-bottom: clamp(48px, 5.5vw, 84px); }
.projects .kicker { margin-bottom: 12px; }
.projects h2 {
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.projects h2 em { color: var(--forest); }
.project-entry {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(22px, 4vw, 60px);
  align-items: center;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.project-entry img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  image-rendering: pixelated;
}
.project-note h3 {
  font-size: clamp(27px, 2.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -.04em;
}
.project-note p { max-width: 46ch; margin-top: 9px; color: var(--soft); }
.project-note .text-link { margin-top: 12px; }
@media (max-width: 600px) {
  .project-entry { grid-template-columns: 1fr; gap: 16px; }
}
@container (max-width: 460px) {
  .game-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-tab { flex-direction: row; align-items: stretch; min-height: 45px; }
  .game-tab img { width: 26%; position: absolute; inset: 0 auto 0 0; height: 100%; }
  .tab-label { margin-left: 26%; align-self: center; padding: 6px; }
  .tab-label small { font-size: .66rem; }
  .game-tab[aria-selected="true"]::after { right: auto; left: 3px; }
}
@media (max-width: 740px) {
  .game-shelf { max-width: 610px; margin-inline: auto; }
}
@media (min-width: 441px) and (max-width: 540px) {
  .masthead nav { gap: 9px; }
}
@media (forced-colors: active) {
  .game-tab[aria-selected="true"] { outline: 3px solid Highlight; outline-offset: -3px; }
}
