.games-header { margin-bottom: 24px; }
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
}
.game-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(16px, 3vw, 32px);
  background: #1e2419;
  border: 1px solid #f4eedf42;
}
.game-card h3 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; }
.game-card p { color: var(--dim); }
.game-card button { font: inherit; cursor: pointer; }
.game-card button:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
.game-card .button { margin-top: auto; font-weight: 750; }
.game-status { min-height: 2.8em; }
.match-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  gap: 8px;
}
.match-tile {
  display: grid;
  place-items: center;
  min-height: 54px;
  aspect-ratio: 1;
  border: 1px solid #f4eedf60;
  background: #131610;
  color: var(--acid);
}
.match-tile img { display: block; width: 84%; height: 84%; object-fit: contain; }
.match-tile[data-state="matched"] { background: #334022; border-color: var(--acid); }
.reaction-pad {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  width: 100%;
  min-height: 200px;
  border: 1px solid #f4eedf60;
  background: #131610;
  color: var(--paper);
  touch-action: manipulation;
}
.reaction-pad img { width: 90px; height: 90px; object-fit: contain; }
.reaction-pad[data-phase="wait"] { background: #4a252d; }
.reaction-pad[data-phase="go"] { background: var(--acid); color: #131610; }
@media (max-width: 680px) { .game-grid { grid-template-columns: 1fr; } }

.carrot-card { grid-column: 1 / -1; }
.carrot-layout {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  width: 100%;
  gap: clamp(16px, 3vw, 32px);
}
.carrot-layout canvas { display: block; width: 100%; height: auto; border: 1px solid #f4eedf60; }
.carrot-panel { display: grid; align-content: start; justify-items: start; gap: 12px; }
.carrot-dpad { display: grid; grid-template-columns: repeat(3, 48px); gap: 6px; }
.carrot-dpad button {
  min-height: 48px;
  background: #131610;
  border: 1px solid #f4eedf60;
  color: var(--paper);
  touch-action: manipulation;
}
.carrot-dpad button:hover { border-color: var(--acid); }
.carrot-dpad button:first-child { grid-column: 2; }
.carrot-dpad button:nth-child(2) { grid-column: 1; }
@media (max-width: 680px) {
  .carrot-layout { grid-template-columns: minmax(0, 1fr); }
  .carrot-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .carrot-dpad { grid-column: 2; grid-row: 1 / span 2; }
}
