.puzzle-board { width: min(100%, 320px); display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); gap: 5px; margin: 12px auto 20px; }
.puzzle-board button { min-width: 0; min-height: 44px; padding: 0; cursor: pointer; touch-action: manipulation; }
.puzzle-actions { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 10px 0; }
.puzzle-actions button { font-size: 12px; }
.puzzle-reward { display: block; width: min(65%, 210px); height: 200px; object-fit: contain; margin: 8px auto 20px; }
.picture-tile { aspect-ratio: 1; border: 1px solid #b7a899; border-radius: 4px; background-color: #eee5d4; background-size: 300% 300%; position: relative; }
.picture-tile span { position: absolute; bottom: 3px; left: 3px; background: #e9dec9ee; color: #241f19; font-size: 11px; border-radius: 3px; min-width: 19px; padding: 1px 4px; }
.picture-tile[data-empty="true"] { background-color: #d8cbb6; border-style: dashed; }
.picture-tile[data-empty="true"] span { display: none; }
.picture-reference summary { padding: 10px 0; min-height: 44px; cursor: pointer; font-size: 12px; color: #685b47; }
.picture-reference img { display: block; width: min(100%, 240px); margin: 10px auto; }
.tea-board { background: #cbbca2; padding: 7px; border-radius: 9px; touch-action: none; }
.tea-tile { display: grid; place-items: center; aspect-ratio: 1; border-radius: 5px; background: #e0d3bb; font-size: clamp(16px, 6vw, 26px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.tea-tile[data-level="1"] { background: #eee5d4; }
.tea-tile[data-level="2"] { background: #ead2b1; }
.tea-tile[data-level="3"] { background: #dbb6a4; }
.tea-tile[data-level="4"] { background: #cca1a0; }
.tea-tile[data-level="5"] { background: #814852; color: #fff4df; }
.tea-tile[data-level="6"] { background: #52603e; color: #fff4df; }
.tea-tile[data-level="7"] { background: #526b7a; color: #fff4df; }
.tea-tile[data-level="8"] { background: #46394e; color: #fff4df; }
.stitch-board { grid-template-columns: 30px repeat(5, minmax(0, 1fr)); gap: 3px; max-width: 325px; }
.stitch-clue { display: flex; align-items: center; justify-content: center; font-size: 11px; color: #685b47; line-height: 1.25; white-space: pre; }
.column-clue { min-height: 46px; align-items: flex-end; padding-bottom: 5px; text-align: center; }
.stitch-clue[data-complete="true"] { color: #52603e; font-weight: 700; text-decoration: underline; }
.stitch-cell { aspect-ratio: 1; border: 1px solid #ad9e86; background: #eee5d4; border-radius: 2px; color: #814852 !important; }
.stitch-cell[data-filled="true"] { background: #814852; border-color: #814852; }
.firefly-board { padding: 12px; background: #52603e; border-radius: 70px 70px 5px 5px; gap: 8px; }
.firefly-cell { aspect-ratio: 1; border: 1px solid #a7b497; border-radius: 40px 40px 3px 3px; background: #39452c; color: #e9dec9 !important; font-size: 26px !important; }
.firefly-cell[aria-pressed="true"] { background: #f2d98f; color: #56472a !important; }
.puzzle-hint { outline: 3px dashed #814852 !important; outline-offset: 4px; }
.meadow-board { gap: 1px; }
.meadow-cell { aspect-ratio: 1; border: 1px solid transparent; border-radius: 50%; background: none; font-size: 17px !important; }
.meadow-cell[data-found="true"] { background: #cdd3bc; color: #344025; }
.meadow-cell[aria-pressed="true"] { border-color: #814852; background: #dec1bd; }
.meadow-words { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; font-size: 12px; color: #685b47; }
.meadow-words [data-found="true"] { text-decoration: line-through; color: #52603e; }
.post-board { gap: 3px; touch-action: none; }
.post-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 3px; font-size: 24px; color: #814852; background: #eee5d4; min-width: 0; }
.post-cell[data-wall="true"] { background: #cbbca2; }
.post-cell[data-delivered="true"] { background: #cdd3bc; color: #52603e; }
.post-cell img { width: 100%; height: 100%; object-fit: contain; }
.arcade-section-title { font: inherit; font-size: 12px; color: #52603e; margin: 24px 0 0; }
.arcade-welcome { display: flex; align-items: center; gap: 18px; margin: 0 0 14px; }
.arcade-welcome img { width: 95px; height: 95px; object-fit: contain; }
.arcade-welcome p { margin: 0; font-size: 12px; color: #685b47; }
.art-shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.art-shelf button { border: 0; background: transparent; padding: 8px; cursor: pointer; font-size: 11px; min-height: 44px; }
.art-shelf img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; margin-bottom: 8px; }
.art-portrait { width: 100%; max-height: 50dvh; object-fit: contain; }
@media (max-width: 350px) { .terminal-page { padding-left: 18px; padding-right: 18px; } .puzzle-board { gap: 3px; } .meadow-board { gap: 1px; } }
