/* ---------------------------------------------------------------
   Harvest Hollow - game-specific styles.

   Loaded after /assets/base.css, which supplies the design tokens,
   the top bar, the buttons, the footer, the modals, the cookie
   banner and the legal-page layout shared by every Lynxy game.
   Only the farm, its panels and the tokens they need live here.
---------------------------------------------------------------- */

/* ------------------------------- tokens -------------------------------- */

:root {
  --grass: #86c95f;
  --grass-2: #74b94f;
  --grass-edge: #5e9e3e;
  --soil: #8a5a36;
  --soil-2: #7a4d2c;
  --soil-edge: #5d3a20;
  --wood: #c48c55;
  --wood-2: #93603a;
  --wood-dark: #6b4424;
  --soil-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='m' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%239c6a41'/%3E%3Cstop offset='.4' stop-color='%2386573a'/%3E%3Cstop offset='.85' stop-color='%23744a2c'/%3E%3Cstop offset='1' stop-color='%236a4226'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='100' height='100' fill='%235e3b22'/%3E%3Crect x='-6' y='3' width='112' height='21' rx='10.5' fill='url(%23m)'/%3E%3Cpath d='M6 7.5 Q50 5.5 94 7.5' stroke='%23c9956a' stroke-width='1.3' fill='none' stroke-linecap='round' opacity='.35'/%3E%3Crect x='-6' y='27.5' width='112' height='21' rx='10.5' fill='url(%23m)'/%3E%3Cpath d='M6 32.0 Q50 30.0 94 32.0' stroke='%23c9956a' stroke-width='1.3' fill='none' stroke-linecap='round' opacity='.35'/%3E%3Crect x='-6' y='52' width='112' height='21' rx='10.5' fill='url(%23m)'/%3E%3Cpath d='M6 56.5 Q50 54.5 94 56.5' stroke='%23c9956a' stroke-width='1.3' fill='none' stroke-linecap='round' opacity='.35'/%3E%3Crect x='-6' y='76.5' width='112' height='21' rx='10.5' fill='url(%23m)'/%3E%3Cpath d='M6 81.0 Q50 79.0 94 81.0' stroke='%23c9956a' stroke-width='1.3' fill='none' stroke-linecap='round' opacity='.35'/%3E%3Ccircle cx='33.4' cy='17.2' r='0.5' fill='%23b58458' opacity='.7'/%3E%3Ccircle cx='53.4' cy='37.4' r='1.0' fill='%23b58458' opacity='.7'/%3E%3Ccircle cx='23.2' cy='11.1' r='0.5' fill='%235b3a20' opacity='.7'/%3E%3Ccircle cx='11.5' cy='42.9' r='1.1' fill='%23b58458' opacity='.7'/%3E%3Ccircle cx='62.3' cy='57.8' r='0.8' fill='%23b58458' opacity='.7'/%3E%3Ccircle cx='40.3' cy='94.8' r='0.8' fill='%23b58458' opacity='.7'/%3E%3Ccircle cx='15.5' cy='42.4' r='0.8' fill='%23b58458' opacity='.7'/%3E%3Ccircle cx='55.7' cy='67.1' r='0.8' fill='%23b58458' opacity='.7'/%3E%3Ccircle cx='63.1' cy='38.0' r='0.8' fill='%23b58458' opacity='.7'/%3E%3Ccircle cx='61.2' cy='49.7' r='1.0' fill='%235b3a20' opacity='.7'/%3E%3Ccircle cx='46.8' cy='89.8' r='0.7' fill='%23c79a70' opacity='.7'/%3E%3Ccircle cx='77.7' cy='68.7' r='0.5' fill='%234a2c16' opacity='.7'/%3E%3Ccircle cx='31.2' cy='49.5' r='0.9' fill='%23c79a70' opacity='.7'/%3E%3Ccircle cx='30.1' cy='95.1' r='0.8' fill='%23b58458' opacity='.7'/%3E%3Ccircle cx='18.5' cy='35.2' r='0.8' fill='%235b3a20' opacity='.7'/%3E%3Ccircle cx='93.4' cy='10.3' r='0.7' fill='%23c79a70' opacity='.7'/%3E%3Ccircle cx='35.9' cy='49.7' r='0.5' fill='%235b3a20' opacity='.7'/%3E%3Ccircle cx='11.8' cy='28.4' r='0.5' fill='%23b58458' opacity='.7'/%3E%3Ccircle cx='68.9' cy='63.8' r='0.7' fill='%235b3a20' opacity='.7'/%3E%3Ccircle cx='39.3' cy='65.9' r='1.1' fill='%23b58458' opacity='.7'/%3E%3Ccircle cx='36.4' cy='60.4' r='0.5' fill='%235b3a20' opacity='.7'/%3E%3Ccircle cx='75.2' cy='15.2' r='0.7' fill='%234a2c16' opacity='.7'/%3E%3Ccircle cx='89.2' cy='49.7' r='0.8' fill='%234a2c16' opacity='.7'/%3E%3Ccircle cx='54.6' cy='86.0' r='1.0' fill='%235b3a20' opacity='.7'/%3E%3Ccircle cx='29.2' cy='42.0' r='0.9' fill='%23c79a70' opacity='.7'/%3E%3Ccircle cx='38.8' cy='24.7' r='0.6' fill='%23b58458' opacity='.7'/%3E%3Ccircle cx='24.8' cy='24.9' r='1.0' fill='%235b3a20' opacity='.7'/%3E%3Ccircle cx='20.1' cy='29.5' r='0.8' fill='%234a2c16' opacity='.7'/%3E%3Ccircle cx='37.7' cy='56.2' r='0.9' fill='%234a2c16' opacity='.7'/%3E%3Ccircle cx='51.5' cy='61.1' r='0.8' fill='%23b58458' opacity='.7'/%3E%3Ccircle cx='84.9' cy='92.5' r='0.7' fill='%235b3a20' opacity='.7'/%3E%3Ccircle cx='40.0' cy='48.3' r='0.5' fill='%235b3a20' opacity='.7'/%3E%3Ccircle cx='9.3' cy='22.6' r='0.6' fill='%234a2c16' opacity='.7'/%3E%3Ccircle cx='59.5' cy='12.6' r='0.8' fill='%234a2c16' opacity='.7'/%3E%3Ccircle cx='92.2' cy='60.7' r='1.0' fill='%23b58458' opacity='.7'/%3E%3Ccircle cx='60.7' cy='17.0' r='1.1' fill='%23c79a70' opacity='.7'/%3E%3Ccircle cx='59.6' cy='47.6' r='1.0' fill='%23b58458' opacity='.7'/%3E%3Ccircle cx='96.4' cy='46.8' r='0.7' fill='%235b3a20' opacity='.7'/%3E%3Cellipse cx='20.1' cy='71.0' rx='2.2' ry='1.3' fill='%23b9a58e'/%3E%3Cellipse cx='19.7' cy='70.5' rx='0.9' ry='.6' fill='%23e3d6c4' opacity='.8'/%3E%3Cellipse cx='66.1' cy='51.4' rx='1.8' ry='1.5' fill='%23b9a58e'/%3E%3Cellipse cx='65.7' cy='50.9' rx='0.9' ry='.6' fill='%23e3d6c4' opacity='.8'/%3E%3Cellipse cx='38.4' cy='66.0' rx='2.3' ry='1.4' fill='%23b9a58e'/%3E%3Cellipse cx='38.0' cy='65.5' rx='0.9' ry='.6' fill='%23e3d6c4' opacity='.8'/%3E%3Cellipse cx='33.0' cy='62.0' rx='1.7' ry='1.4' fill='%23b9a58e'/%3E%3Cellipse cx='32.6' cy='61.5' rx='0.9' ry='.6' fill='%23e3d6c4' opacity='.8'/%3E%3Cellipse cx='51.5' cy='84.3' rx='1.9' ry='1.2' fill='%23b9a58e'/%3E%3Cellipse cx='51.1' cy='83.8' rx='0.9' ry='.6' fill='%23e3d6c4' opacity='.8'/%3E%3C/svg%3E");
  --grass-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cpath d='M75.5 72.3q-2.5-5-5-7M75.5 72.3q.3-6 1.5-9M75.5 72.3q2.5-4 6-6' stroke='%23f0ffd8' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.32'/%3E%3Cpath d='M84.9 108.9q-2.5-5-5-7M84.9 108.9q.3-6 1.5-9M84.9 108.9q2.5-4 6-6' stroke='%23f0ffd8' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.32'/%3E%3Cpath d='M29.8 38.6q-2.5-5-5-7M29.8 38.6q.3-6 1.5-9M29.8 38.6q2.5-4 6-6' stroke='%232d6b27' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.22'/%3E%3Cpath d='M110.0 33.6q-2.5-5-5-7M110.0 33.6q.3-6 1.5-9M110.0 33.6q2.5-4 6-6' stroke='%232d6b27' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.22'/%3E%3Cpath d='M100.5 134.7q-2.5-5-5-7M100.5 134.7q.3-6 1.5-9M100.5 134.7q2.5-4 6-6' stroke='%23f0ffd8' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.32'/%3E%3Cpath d='M66.3 32.8q-2.5-5-5-7M66.3 32.8q.3-6 1.5-9M66.3 32.8q2.5-4 6-6' stroke='%23f0ffd8' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.32'/%3E%3Cpath d='M49.4 111.5q-2.5-5-5-7M49.4 111.5q.3-6 1.5-9M49.4 111.5q2.5-4 6-6' stroke='%23f0ffd8' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.32'/%3E%3Cpath d='M50.1 132.7q-2.5-5-5-7M50.1 132.7q.3-6 1.5-9M50.1 132.7q2.5-4 6-6' stroke='%232d6b27' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.22'/%3E%3Cpath d='M17.5 68.2q-2.5-5-5-7M17.5 68.2q.3-6 1.5-9M17.5 68.2q2.5-4 6-6' stroke='%232d6b27' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.22'/%3E%3Cpath d='M67.7 134.1q-2.5-5-5-7M67.7 134.1q.3-6 1.5-9M67.7 134.1q2.5-4 6-6' stroke='%23f0ffd8' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.32'/%3E%3Cpath d='M4.3 124.4q-2.5-5-5-7M4.3 124.4q.3-6 1.5-9M4.3 124.4q2.5-4 6-6' stroke='%232d6b27' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.22'/%3E%3Cpath d='M88.9 114.8q-2.5-5-5-7M88.9 114.8q.3-6 1.5-9M88.9 114.8q2.5-4 6-6' stroke='%232d6b27' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.22'/%3E%3Cpath d='M55.3 99.1q-2.5-5-5-7M55.3 99.1q.3-6 1.5-9M55.3 99.1q2.5-4 6-6' stroke='%232d6b27' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.22'/%3E%3Cpath d='M121.3 63.5q-2.5-5-5-7M121.3 63.5q.3-6 1.5-9M121.3 63.5q2.5-4 6-6' stroke='%23f0ffd8' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.32'/%3E%3Cpath d='M15.5 129.1q-2.5-5-5-7M15.5 129.1q.3-6 1.5-9M15.5 129.1q2.5-4 6-6' stroke='%23f0ffd8' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.32'/%3E%3Cpath d='M65.1 103.1q-2.5-5-5-7M65.1 103.1q.3-6 1.5-9M65.1 103.1q2.5-4 6-6' stroke='%232d6b27' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.22'/%3E%3Cpath d='M25.0 135.1q-2.5-5-5-7M25.0 135.1q.3-6 1.5-9M25.0 135.1q2.5-4 6-6' stroke='%232d6b27' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.22'/%3E%3Cpath d='M82.0 67.6q-2.5-5-5-7M82.0 67.6q.3-6 1.5-9M82.0 67.6q2.5-4 6-6' stroke='%23f0ffd8' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.32'/%3E%3Cpath d='M84.7 84.3q-2.5-5-5-7M84.7 84.3q.3-6 1.5-9M84.7 84.3q2.5-4 6-6' stroke='%232d6b27' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.22'/%3E%3Cpath d='M127.7 28.0q-2.5-5-5-7M127.7 28.0q.3-6 1.5-9M127.7 28.0q2.5-4 6-6' stroke='%232d6b27' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.22'/%3E%3Cpath d='M6.8 110.3q-2.5-5-5-7M6.8 110.3q.3-6 1.5-9M6.8 110.3q2.5-4 6-6' stroke='%23f0ffd8' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.32'/%3E%3Cpath d='M17.6 103.9q-2.5-5-5-7M17.6 103.9q.3-6 1.5-9M17.6 103.9q2.5-4 6-6' stroke='%232d6b27' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.22'/%3E%3Cpath d='M134.2 32.9q-2.5-5-5-7M134.2 32.9q.3-6 1.5-9M134.2 32.9q2.5-4 6-6' stroke='%23f0ffd8' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.32'/%3E%3Cpath d='M7.7 35.2q-2.5-5-5-7M7.7 35.2q.3-6 1.5-9M7.7 35.2q2.5-4 6-6' stroke='%232d6b27' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.22'/%3E%3Cpath d='M104.8 49.7q-2.5-5-5-7M104.8 49.7q.3-6 1.5-9M104.8 49.7q2.5-4 6-6' stroke='%232d6b27' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.22'/%3E%3Cpath d='M114.1 15.8q-2.5-5-5-7M114.1 15.8q.3-6 1.5-9M114.1 15.8q2.5-4 6-6' stroke='%23f0ffd8' stroke-width='1.1' fill='none' stroke-linecap='round' opacity='0.32'/%3E%3Ccircle cx='117.7' cy='87.3' r='2.1' fill='%232f7a28' opacity='.3'/%3E%3Ccircle cx='115.7' cy='90.5' r='2.1' fill='%232f7a28' opacity='.3'/%3E%3Ccircle cx='119.7' cy='90.5' r='2.1' fill='%232f7a28' opacity='.3'/%3E%3Ccircle cx='107.8' cy='69.8' r='2.1' fill='%232f7a28' opacity='.3'/%3E%3Ccircle cx='105.8' cy='73.0' r='2.1' fill='%232f7a28' opacity='.3'/%3E%3Ccircle cx='109.8' cy='73.0' r='2.1' fill='%232f7a28' opacity='.3'/%3E%3Ccircle cx='109.3' cy='113.2' r='2.1' fill='%232f7a28' opacity='.3'/%3E%3Ccircle cx='107.3' cy='116.4' r='2.1' fill='%232f7a28' opacity='.3'/%3E%3Ccircle cx='111.3' cy='116.4' r='2.1' fill='%232f7a28' opacity='.3'/%3E%3Ccircle cx='25.7' cy='26.0' r='2.1' fill='%232f7a28' opacity='.3'/%3E%3Ccircle cx='23.7' cy='29.2' r='2.1' fill='%232f7a28' opacity='.3'/%3E%3Ccircle cx='27.7' cy='29.2' r='2.1' fill='%232f7a28' opacity='.3'/%3E%3Cellipse cx='24.0' cy='34.0' rx='1.6' ry='.9' transform='rotate(0 24.0 34.0)' fill='%23ffffff' opacity='.9'/%3E%3Cellipse cx='23.0' cy='35.7' rx='1.6' ry='.9' transform='rotate(60 23.0 35.7)' fill='%23ffffff' opacity='.9'/%3E%3Cellipse cx='21.0' cy='35.7' rx='1.6' ry='.9' transform='rotate(120 21.0 35.7)' fill='%23ffffff' opacity='.9'/%3E%3Cellipse cx='20.0' cy='34.0' rx='1.6' ry='.9' transform='rotate(180 20.0 34.0)' fill='%23ffffff' opacity='.9'/%3E%3Cellipse cx='21.0' cy='32.3' rx='1.6' ry='.9' transform='rotate(240 21.0 32.3)' fill='%23ffffff' opacity='.9'/%3E%3Cellipse cx='23.0' cy='32.3' rx='1.6' ry='.9' transform='rotate(300 23.0 32.3)' fill='%23ffffff' opacity='.9'/%3E%3Ccircle cx='22' cy='34' r='1.2' fill='%23f5c531'/%3E%3Cellipse cx='106.0' cy='22.0' rx='1.6' ry='.9' transform='rotate(0 106.0 22.0)' fill='%23ffffff' opacity='.9'/%3E%3Cellipse cx='105.0' cy='23.7' rx='1.6' ry='.9' transform='rotate(60 105.0 23.7)' fill='%23ffffff' opacity='.9'/%3E%3Cellipse cx='103.0' cy='23.7' rx='1.6' ry='.9' transform='rotate(120 103.0 23.7)' fill='%23ffffff' opacity='.9'/%3E%3Cellipse cx='102.0' cy='22.0' rx='1.6' ry='.9' transform='rotate(180 102.0 22.0)' fill='%23ffffff' opacity='.9'/%3E%3Cellipse cx='103.0' cy='20.3' rx='1.6' ry='.9' transform='rotate(240 103.0 20.3)' fill='%23ffffff' opacity='.9'/%3E%3Cellipse cx='105.0' cy='20.3' rx='1.6' ry='.9' transform='rotate(300 105.0 20.3)' fill='%23ffffff' opacity='.9'/%3E%3Ccircle cx='104' cy='22' r='1.2' fill='%23f5c531'/%3E%3Ccircle cx='70' cy='96' r='2' fill='%23ffd93b' opacity='.95'/%3E%3Ccircle cx='70' cy='96' r='.7' fill='%23e39b12'/%3E%3Cellipse cx='124.0' cy='112.0' rx='1.6' ry='.9' transform='rotate(0 124.0 112.0)' fill='%23ffffff' opacity='.9'/%3E%3Cellipse cx='123.0' cy='113.7' rx='1.6' ry='.9' transform='rotate(60 123.0 113.7)' fill='%23ffffff' opacity='.9'/%3E%3Cellipse cx='121.0' cy='113.7' rx='1.6' ry='.9' transform='rotate(120 121.0 113.7)' fill='%23ffffff' opacity='.9'/%3E%3Cellipse cx='120.0' cy='112.0' rx='1.6' ry='.9' transform='rotate(180 120.0 112.0)' fill='%23ffffff' opacity='.9'/%3E%3Cellipse cx='121.0' cy='110.3' rx='1.6' ry='.9' transform='rotate(240 121.0 110.3)' fill='%23ffffff' opacity='.9'/%3E%3Cellipse cx='123.0' cy='110.3' rx='1.6' ry='.9' transform='rotate(300 123.0 110.3)' fill='%23ffffff' opacity='.9'/%3E%3Ccircle cx='122' cy='112' r='1.2' fill='%23f5c531'/%3E%3Ccircle cx='34' cy='118' r='1.6' fill='%23ff9ecb' opacity='.9'/%3E%3Ccircle cx='34' cy='118' r='.6' fill='%23fff2a8'/%3E%3Ccircle cx='88' cy='58' r='2' fill='%23ffd93b' opacity='.95'/%3E%3Ccircle cx='88' cy='58' r='.7' fill='%23e39b12'/%3E%3C/svg%3E");
  --farm-green: #2f9e57;
  --farm-green-2: #7cc653;
  --gold: #f5b82a;
  --good: #17a673;
  --bad: #e0435b;
  --chip: rgba(255, 255, 255, .88);
  --chip-text: #22301c;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grass: #3d7c47;
    --grass-2: #33693c;
    --grass-edge: #2a5832;
    --soil: #6e4629;
    --soil-2: #5f3c22;
    --soil-edge: #3f2614;
    --wood: #a8784a;
    --wood-2: #7c5030;
    --wood-dark: #4f311a;
    --farm-green: #35c46e;
    --farm-green-2: #7cc653;
    --good: #35d39a;
    --bad: #ff6b82;
    --chip: rgba(14, 17, 23, .78);
    --chip-text: #e8ecf5;
  }
}

:root[data-theme="dark"] {
  --grass: #3d7c47;
  --grass-2: #33693c;
  --grass-edge: #2a5832;
  --soil: #6e4629;
  --soil-2: #5f3c22;
  --soil-edge: #3f2614;
  --wood: #a8784a;
  --wood-2: #7c5030;
  --wood-dark: #4f311a;
  --farm-green: #35c46e;
  --farm-green-2: #7cc653;
  --good: #35d39a;
  --bad: #ff6b82;
  --chip: rgba(14, 17, 23, .78);
  --chip-text: #e8ecf5;
}

/* --------------------------- header extras ----------------------------- */

.brand__mark--farm {
  background: linear-gradient(135deg, #3fb56a, #8bcf4f);
}

.brand__mark--farm svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.stats {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 10px;
  text-align: center;
  min-width: 58px;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.stat--coins { min-width: 76px; }

.stat__value {
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat--coins .stat__value { color: #c98a0b; }
:root[data-theme="dark"] .stat--coins .stat__value { color: var(--gold); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stat--coins .stat__value { color: var(--gold); }
}

.stat__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-dim);
}

@media (max-width: 520px) {
  .stats { gap: 6px; }
  .stat { min-width: 48px; padding: 4px 6px; }
  .stat--coins { min-width: 64px; }
  .stat__value { font-size: 15px; }
  .stat__label { font-size: 9px; letter-spacing: .04em; }
  .brand__name { display: none; }
}

/* -------------------------------- page --------------------------------- */

.page {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page [hidden] { display: none !important; }

/* ---------------------------------- HUD -------------------------------- */

.hud {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud__level {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 2px 8px rgba(139, 92, 246, .35);
}

.hud__xp { flex: 1; min-width: 0; }

.hud__bar {
  height: 10px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}

.hud__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 6px;
  transition: width .4s ease;
}

.hud__text {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.hud__sound {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon__mute { display: none; }
.hud__sound[aria-pressed="false"] .icon__waves { display: none; }
.hud__sound[aria-pressed="false"] .icon__mute { display: block; }
.hud__bell[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }

/* --------------------------------- tabs -------------------------------- */

.tabs {
  position: sticky;
  top: var(--topbar-h, 57px);
  z-index: 15;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.tab {
  position: relative;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-dim);
  padding: 6px 2px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.tab svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.tab__badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 22px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  color: #fff;
  background: var(--good);
  box-shadow: 0 0 0 2px var(--surface);
}

.tab__badge--bad { background: var(--bad); animation: pulse 1s ease-in-out infinite; }

/* --------------------------------- farm -------------------------------- */

.farm {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--grass-edge);
  background:
    radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0, 0, 0, .14)),
    var(--grass-tex) 0 0 / 140px 140px,
    linear-gradient(180deg, var(--grass), var(--grass-2));
  box-shadow: var(--shadow);
}

.scene { line-height: 0; }

.scene-svg {
  display: block;
  width: 100%;
  height: 92px;
}

.cloud { animation: drift 40s linear infinite alternate; }
.cloud--b { animation-duration: 55s; animation-direction: alternate-reverse; }

@keyframes drift { to { transform: translateX(60px); } }

/* Life in the valley: twinkling stars, fireflies, the windmill, chimney smoke, the sun's rays. */
.scene-svg .tw { animation: star-tw 3s ease-in-out infinite; }
.scene-svg .ff { animation: firefly 5s ease-in-out infinite; }
.scene-svg .blades { transform-box: fill-box; transform-origin: center; animation: spin 9s linear infinite; }
.scene-svg .rays { transform-box: fill-box; transform-origin: center; animation: spin 30s linear infinite; }
.scene-svg .smoke circle { animation: smoke 4s ease-out infinite; }
.scene-svg .smoke circle:nth-child(2) { animation-delay: -1.3s; }
.scene-svg .smoke circle:nth-child(3) { animation-delay: -2.6s; }

@keyframes star-tw { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes firefly {
  0%, 100% { transform: translate(0, 0); opacity: .2; }
  30% { opacity: 1; }
  50% { transform: translate(6px, -5px); opacity: .9; }
  75% { transform: translate(-4px, -2px); opacity: .3; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes smoke { from { transform: translateY(4px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-6px); opacity: 0; } }

.hint {
  margin: 10px 10px 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--chip);
  color: var(--chip-text);
  font-size: 13px;
  line-height: 1.35;
  min-height: 2.7em;
}

.field {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
}

.plot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  /* The frame of a raised bed: boards with a little grain and a nail in each corner. */
  background:
    radial-gradient(circle at 5px 5px, var(--wood-dark) 0 1.3px, transparent 1.8px),
    radial-gradient(circle at calc(100% - 5px) 5px, var(--wood-dark) 0 1.3px, transparent 1.8px),
    radial-gradient(circle at 5px calc(100% - 5px), var(--wood-dark) 0 1.3px, transparent 1.8px),
    radial-gradient(circle at calc(100% - 5px) calc(100% - 5px), var(--wood-dark) 0 1.3px, transparent 1.8px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 7px, rgba(0, 0, 0, .05) 7px 8px, transparent 8px 13px),
    linear-gradient(180deg, var(--wood), var(--wood-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 0 var(--wood-dark), 0 6px 10px rgba(0, 0, 0, .22);
  color: #fff;
  font: inherit;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  transition: transform .08s ease;
}

/* The soil inside the frame, slightly sunken. */
.plot::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 9px;
  background: var(--soil-tex) center / 100% 100%;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, .45), inset 0 -1px 0 rgba(255, 255, 255, .12);
}

:root[data-theme="dark"] .plot::before { filter: brightness(.88) saturate(.95); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plot::before { filter: brightness(.88) saturate(.95); }
}

.plot:active { transform: scale(.95); }
.plot:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.plot svg.plant,
.plot svg.pests {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.plot--empty .plot__plus {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1.5px dashed rgba(255, 255, 255, .6);
  animation: breathe 2.6s ease-in-out infinite;
}

@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.08); background: rgba(255, 255, 255, .28); } }

.plot--locked {
  background: rgba(255, 255, 255, .1);
  box-shadow: none;
  border: 2px dashed rgba(255, 255, 255, .45);
  cursor: default;
}

.plot--locked::before { display: none; }

.plot--locked:not(.plot--next) { opacity: .45; }
.plot--next { cursor: pointer; }

.plot__lock {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 46%;
  transform: translate(-50%, -50%);
}

.plot__lock svg { width: 100%; height: auto; display: block; }

.plot__price {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: var(--chip-text);
  background: var(--chip);
  border-radius: 8px;
  padding: 1px 2px;
  white-space: nowrap;
}

.plot--ready {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 0 var(--wood-dark), 0 0 0 3px var(--gold), 0 0 18px rgba(245, 184, 42, .75);
}

.plot--ready svg.plant { animation: sway 2.4s ease-in-out infinite; transform-origin: 50% 80%; }

.plot__sparkle,
.plot__sparkle::after {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff6c7;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 1.6s ease-in-out infinite;
}

.plot__sparkle { top: 8%; right: 10%; }
.plot__sparkle::after { content: ""; top: 250%; left: -420%; width: 7px; height: 7px; animation-delay: .7s; }

.plot--pest { box-shadow: 0 3px 0 var(--wood-dark), 0 0 0 3px var(--bad); animation: alarm 1.2s ease-in-out infinite; }
.pest-bob { animation: crawl .8s steps(2) infinite; }

.plot__dmg {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 6px;
  height: 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .35);
  overflow: hidden;
}

.plot__dmg span { display: block; height: 100%; width: 0; background: var(--bad); }

.plot__bar {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 5px;
  height: 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .3);
  overflow: hidden;
}

.plot__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #9be15d, #3fcf7a);
  transition: width .5s linear;
}

.plot__time {
  position: absolute;
  left: 4px;
  top: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.plot--pest .plot__time { top: 14px; background: var(--bad); }

.plot__badges {
  position: absolute;
  right: 3px;
  top: 3px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.plot--pest .plot__badges { top: 14px; }
.plot__badges svg { width: 16px; height: 16px; display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }

.plot__left {
  position: absolute;
  right: 4px;
  bottom: 11px;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 5px;
  background: rgba(109, 44, 145, .85);
  color: #fff;
}

.plot__tag {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .5);
}

.plot__tag--bad { background: var(--bad); }

.field-actions {
  display: flex;
  gap: 8px;
}

.field-actions .btn {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  white-space: normal;
  line-height: 1.2;
}

.field-actions .btn svg.ico { width: 22px; height: 22px; flex: none; }

.btn:disabled { opacity: .5; cursor: default; transform: none; }

@keyframes sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes crawl { 50% { transform: translate(.8px, -.6px); } }
@keyframes alarm { 50% { box-shadow: 0 3px 0 var(--wood-dark), 0 0 0 3px var(--bad), 0 0 14px rgba(224, 67, 91, .7); } }
@keyframes pulse { 50% { transform: scale(1.15); } }

/* ------------------------------- boxes --------------------------------- */

.card-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.card-box + .card-box { margin-top: 10px; }

.box-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.box-title { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.box-note { font-size: 12px; color: var(--text-dim); text-align: right; }
.muted { color: var(--text-dim); font-size: 13px; margin: 8px 0; }
.small { font-size: 12px; }

.btn--sm { font-size: 13px; padding: 7px 10px; border-radius: 10px; }
.btn--wide { width: 100%; margin-top: 8px; }

.btn--danger { background: var(--bad); color: #fff; }

.btn svg.ico { width: 18px; height: 18px; flex: none; }

.coin {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.coin svg { width: 1.05em; height: 1.05em; flex: none; }

.meter {
  height: 10px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}

.meter__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #9be15d, #3fb56a);
  transition: width .3s ease;
}

.meter__fill--full { background: var(--bad); }

.sell-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.sell-bar .btn { width: 100%; }

.step {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.step__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  padding: 0 6px 0 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.step__btn {
  flex: 1;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 7px 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.step__btn[aria-checked="true"] {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow);
}

@media (min-width: 440px) {
  .sell-bar { flex-direction: row; align-items: stretch; }
  .sell-bar .step { flex: 1; }
  .sell-bar .btn { width: auto; flex: 1; }
}

.rows {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.row--locked { opacity: .6; }

.row__icon { flex: none; width: 40px; height: 40px; }
.row__icon svg { width: 100%; height: 100%; display: block; }

.row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row__name { font-weight: 700; font-size: 14px; }
.row__count { font-weight: 600; color: var(--text-dim); font-size: 12px; }
.row__meta { font-size: 12px; color: var(--text-dim); line-height: 1.35; }

.row__actions {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.rows--compact .row { padding: 6px 8px; }
.rows--compact .row__icon { width: 32px; height: 32px; }

.lock-note { font-size: 12px; font-weight: 700; color: var(--text-dim); }

.trend { font-weight: 700; }
.trend--up { color: var(--good); }
.trend--down { color: var(--bad); }
.trend--flat { color: var(--text-dim); }
.safe { color: var(--good); font-weight: 700; font-size: 11px; }
.warn { color: var(--bad); font-weight: 700; }

.empty-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  padding: 20px 10px;
}

/* ------------------------------- orders -------------------------------- */

.orders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 10px 12px;
}

.order--ok { border-color: var(--good); box-shadow: 0 0 0 1px var(--good) inset; }

.order--rare {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(245, 197, 66, .22), transparent 60%), var(--surface-2);
  box-shadow: 0 0 0 1px var(--gold) inset, 0 4px 14px rgba(245, 184, 42, .25);
}

.order__rare {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b4a00;
  background: linear-gradient(90deg, #ffe08a, #f5c542);
}

.order--wait {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 14px;
  border-style: dashed;
}

.order__eta { font-variant-numeric: tabular-nums; font-weight: 700; }

.order__head { display: flex; align-items: center; gap: 8px; }
.order__avatar { font-size: 24px; line-height: 1; }
.order__who { font-weight: 700; flex: 1; min-width: 0; }
.order__reward { display: flex; flex-direction: column; align-items: flex-end; font-size: 15px; }
.order__xp { font-size: 11px; font-weight: 700; color: var(--accent-2); }

.order__items {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.order__items li {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 4px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.order__items li svg { width: 26px; height: 26px; }
.order__items li.is-ok { border-color: var(--good); color: var(--good); }

.order__actions { display: flex; justify-content: flex-end; gap: 6px; }

/* -------------------------------- coop --------------------------------- */

.coop-intro { text-align: center; }
.coop-intro .coop-svg { width: 160px; height: auto; display: block; margin: 0 auto 6px; }
.coop-intro p { color: var(--text-dim); font-size: 14px; margin: 0 0 12px; }

.yard {
  position: relative;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--grass-edge);
  background:
    radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0, 0, 0, .14)),
    var(--grass-tex) 0 0 / 140px 140px,
    linear-gradient(180deg, var(--grass), var(--grass-2));
}

.yard__coop { position: absolute; left: 4%; top: 6px; width: 44%; max-width: 170px; }
.yard__coop svg { width: 100%; height: auto; display: block; }

.hen {
  position: absolute;
  width: 42px;
  height: 42px;
  animation: wander 8s ease-in-out infinite;
}

.hen svg { width: 100%; height: 100%; display: block; animation: peck 1.4s ease-in-out infinite; transform-origin: 50% 90%; }

@keyframes wander {
  0% { transform: translateX(0) scaleX(1); }
  45% { transform: translateX(46px) scaleX(1); }
  50% { transform: translateX(46px) scaleX(-1); }
  95% { transform: translateX(0) scaleX(-1); }
  100% { transform: translateX(0) scaleX(1); }
}

@keyframes peck { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(14deg); } }

.yard__nest {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px 2px 4px;
  border-radius: 12px;
  background: var(--chip);
  color: var(--chip-text);
  font-size: 14px;
}

.yard__nest:empty { display: none; }
.yard__nest svg { width: 26px; height: 26px; }

.meters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px 0;
}

.meter-card {
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 6px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.meter-card__label { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.meter-card__value { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.meter-card__value.is-bad { color: var(--bad); }

.egg-rate { margin: -2px 0 10px; text-align: center; }

.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.actions-grid .btn { white-space: normal; line-height: 1.2; min-height: 44px; font-size: 13px; padding: 8px; }

.hives { display: flex; gap: 10px; justify-content: center; min-height: 0; }
.hives__one { width: 64px; }
.hives__one svg { width: 100%; height: auto; display: block; }
.bees { animation: buzz 1.2s ease-in-out infinite; }
@keyframes buzz { 50% { transform: translate(-2px, 2px); } }

/* ------------------------------- shop ---------------------------------- */

.farm-stats {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.farm-stats li {
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--surface-2);
}

.farm-stats b { font-size: 16px; font-variant-numeric: tabular-nums; }
.farm-stats span { font-size: 12px; color: var(--text-dim); }

.settings { display: flex; gap: 8px; flex-wrap: wrap; }
.settings .btn { flex: 1; }

/* ------------------------------- sheet --------------------------------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet[hidden] { display: none; }

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 20, .5);
  animation: fade .2s ease;
}

.sheet__card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  max-height: 86dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  border: 1px solid var(--border);
  border-bottom: 0;
  box-shadow: var(--shadow-lg);
  padding: 8px 14px calc(16px + env(safe-area-inset-bottom));
  animation: slide-up .25s cubic-bezier(.2, .8, .3, 1);
}

.sheet__card::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-strong);
  margin: 0 auto 8px;
}

@keyframes slide-up { from { transform: translateY(40px); opacity: 0; } }

.sheet__head { display: flex; align-items: center; gap: 10px; }
.sheet__icon { width: 36px; height: 36px; flex: none; }
.sheet__icon svg { width: 100%; height: 100%; display: block; }
.sheet__title { margin: 0; font-size: 19px; flex: 1; letter-spacing: -.01em; }
.sheet__title small { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.sheet__sub { margin: 6px 0 10px; font-size: 13px; color: var(--text-dim); }
.sheet__live { margin: 8px 0 0; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }

.sheet__foot { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.sheet__foot--end { justify-content: flex-end; }

.seeds, .cares {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seed, .care {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.seed--locked { opacity: .5; }
.care--urgent { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad) inset; }

.seed__icon, .care__icon { flex: none; width: 40px; height: 40px; }
.seed__icon svg, .care__icon svg { width: 100%; height: 100%; display: block; }
.seed__main, .care__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.seed__name, .care__name { font-weight: 700; font-size: 14px; }
.seed__meta, .care__text { font-size: 12px; color: var(--text-dim); line-height: 1.35; }
.seed__actions { display: flex; flex-direction: column; gap: 4px; flex: none; }

/* ------------------------------- modal --------------------------------- */

.modal__burst { width: 64px; height: 64px; margin: 0 auto; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.modal__burst svg { width: 100%; height: 100%; }
@keyframes pop { from { transform: scale(.3) rotate(-40deg); opacity: 0; } }

.modal__card .modal__title { margin: 8px 0 6px; }
.modal__tip { font-size: 13px; color: var(--text-dim); background: var(--surface-2); border-radius: 12px; padding: 8px 10px; text-align: left; margin: 12px 0 0; }

.unlocks {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.unlocks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--surface-2);
  font-weight: 600;
  font-size: 14px;
}

.unlocks svg { width: 32px; height: 32px; flex: none; }

.broke svg { width: 160px; height: auto; display: block; margin: 0 auto; }

.broke__stats {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.broke__stats li { display: flex; flex-direction: column; padding: 6px; border-radius: 12px; background: var(--surface-2); }
.broke__stats b { font-size: 18px; }
.broke__stats span { font-size: 12px; color: var(--text-dim); }

/* ------------------------------- toasts -------------------------------- */

.toasts {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  pointer-events: none;
}

.toast {
  max-width: 460px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  line-height: 1.35;
  animation: rise .25s cubic-bezier(.2, .8, .3, 1);
  transition: opacity .35s ease, transform .35s ease;
}

.toast--good { border-left-color: var(--good); }
.toast--bad { border-left-color: var(--bad); }
.toast--info { border-left-color: var(--gold); }
.toast--out { opacity: 0; transform: translateY(8px); }

.float {
  position: fixed;
  z-index: 90;
  transform: translate(-50%, 0);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  animation: float-up 1.1s ease-out forwards;
  white-space: nowrap;
}

.float svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }

@keyframes float-up {
  from { opacity: 0; transform: translate(-50%, 8px) scale(.8); }
  20% { opacity: 1; transform: translate(-50%, 0) scale(1.1); }
  to { opacity: 0; transform: translate(-50%, -46px) scale(1); }
}

/* ------------------------ about / SEO copy ----------------------------- */

.about {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 14px;
}

.about h1 {
  font-size: 18px;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0 0 6px;
}

.about h2 {
  font-size: 15px;
  color: var(--text);
  margin: 18px 0 4px;
}

.about p { margin: 0 0 8px; }

.noscript {
  text-align: center;
  padding: 12px 16px;
  margin: 0;
  color: var(--error);
}

/* --------------------------- tables in prose --------------------------- */

.doc .table-wrap { overflow-x: auto; margin: 10px 0; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.doc th, .doc td {
  text-align: left;
  padding: 7px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.doc th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.doc td:first-child { font-weight: 600; }

@media (min-width: 600px) {
  .field { gap: 10px; padding: 12px; }
  .plot__time { font-size: 11px; }
  .scene-svg { height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .hen, .hen svg, .cloud, .pest-bob, .plot--ready svg.plant,
  .plot__plus, .scene-svg .tw, .scene-svg .ff, .scene-svg .blades, .scene-svg .rays, .scene-svg .smoke circle { animation: none !important; }
}
