/* Little Haven: 8-bit garden look using CSS only. Sprites are inline SVG drawn by script. */
.hint { color: var(--muted); font-size: .95rem; }
.plain-list { margin: 0; padding-left: 1.2rem; }
.notice { padding: .5rem .75rem; border: var(--line) dashed var(--border); border-radius: var(--radius-sm); background: var(--note); }

/* Tiles stay at least 44px so they are easy to tap. On a narrow phone the larger gardens scroll inside their own box,
   so the page itself never scrolls sideways. The row and column boxes give the same control without the grid. */
.garden-scroll { width: 100%; max-width: 38rem; margin: 0 auto; overflow-x: auto; padding: 4px; }
.garden-grid { display: grid; gap: 0; width: max(100%, calc(var(--cols, 6) * 44px + 2 * var(--line))); margin: 0; border: var(--line) solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--border); box-shadow: var(--shadow); }
.garden-row { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(44px, 1fr)); }
.garden-cell { min-width: 0; }
.tile { color: var(--ink); position: relative; min-width: 44px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 100%; aspect-ratio: 1; min-height: 44px; padding: 2px; border: 1px solid var(--border); border-radius: 0; box-shadow: none; background: var(--tile-a); font-size: .65rem; line-height: 1; }
.garden-row:nth-child(odd) .garden-cell:nth-child(even) .tile,
.garden-row:nth-child(even) .garden-cell:nth-child(odd) .tile { background: var(--tile-b); }
.tile .px { flex: 1; min-height: 0; }
.tile-label { display: block; min-height: .7rem; color: var(--ink); font-weight: 700; }
.tile.is-selected { outline: 3px solid var(--ink); outline-offset: -3px; }
.tile.is-moving { border-style: dashed; border-width: 3px; }
.tile:focus-visible { outline: 4px solid var(--focus); outline-offset: -4px; z-index: 1; }
.tile:active { transform: none; }

.goto { margin-top: .75rem; }
#tile-actions button, #expansions button { text-align: left; }
#expansions li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.confirm { margin-top: .75rem; padding: .6rem .8rem; border: var(--line) solid var(--border); border-radius: var(--radius-sm); background: var(--note); }
.game-footer { margin-top: 1.5rem; }
details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
#afford li { display: flex; gap: .7rem; align-items: center; min-height: 44px; }
#afford .icon { flex: none; width: 2.25rem; height: 2.25rem; }
