/* Greenhouse play world; the grid and its state remain live HTML. */
.app:has(.game.is-active) {
  background: #f4edd8 url('../assets/living-greenhouse-play.webp') center / cover no-repeat;
  align-items: start;
}
.game.is-active { width: min(1180px, 100%); }
.game .problem-panel, .game .side-panel {
  background: #fffaf0ed;
  border: 2px solid #d6bb8e;
  box-shadow: 0 12px 30px #5a482b28;
}
.game .problem-head { background: #fff9e9; border-bottom-color: #d6bb8e; }
.game .problem-title { color: #164e32; }
.game .problem-body { background: #f8f3deeb; }
.game .focus-board {
  background: #24563e;
  border: 9px solid #855a35;
  border-radius: 22px;
  box-shadow: 0 8px 20px #5b422b35;
}
.game .choice-button { background: #fffaf0; border: 2px solid #d6bb8e; color: #164e32; }
.game .choice-button.is-picked { background: #d6f0d4; border-color: #26714a; }
.game .rule-sheet { background: #fff6dc; }
.game :focus-visible { outline: 3px solid #185d39; outline-offset: 3px; }
@media (max-width: 700px) {
  .app:has(.game.is-active) { background-position: 26% top; }
  .game .problem-panel, .game .side-panel { min-height: 0; }
}

.game .main-grid { width: min(100%, 1000px); margin-inline: auto; }
@media (max-width: 700px) {
  .game .problem-head { padding: 12px; }
  .game .problem-body { padding: 10px; gap: 8px; }
  .game .focus-board { width: min(100%, 220px); padding: 10px; gap: 7px; }
  .game .choice-area, .game .rule-area, .game .feedback-area { padding: 12px; }
}

.game .choice-button { border: 12px solid transparent; border-image: url('../assets/living-button.webp') 25% 14% fill / 12px / 0 stretch; color: #123c24; padding: 6px 12px; } .game .choice-button.is-picked { outline: 4px solid #168454; outline-offset: 2px; }

.game .choice-button { box-shadow: inset 0 0 0 2px #5a875d; border-radius: 14px; }

/* A sprout marks an active square; cell state and centre label remain live text. */
.game .focus-cell.is-on { background: url('../assets/living-sprout.webp') center 38% / 62% auto no-repeat, linear-gradient(145deg, #55c947, #168f38); }

/* Pair the written choices with distinct symbols without relying on color. */
.game .choice-button[data-choice]::after { display: inline-block; margin-left: 7px; font-size: 1.15em; line-height: 1; }
.game .choice-button[data-choice="on"]::after { content: '☀'; }
.game .choice-button[data-choice="off"]::after { content: '⏻'; }

@media (min-width: 1000px) {
  .game .choice-button[data-choice] { min-height: 72px; }
  .game .choice-button[data-choice]::after { margin-left: 9px; font-size: 1.35em; }
}
