/* StillAcre Plant Timer
   An original, game-native focus tool built from StillAcre's real crop sprites. */

.plant-timer-site {
  --timer-night: #081225;
  --timer-panel: rgba(12, 25, 46, 0.94);
  --timer-panel-soft: rgba(19, 39, 61, 0.9);
  --timer-line: #485a79;
  --timer-gold: #f2d488;
  --timer-cream: #fff4d8;
  --timer-mist: #bdc8dd;
  --timer-green: #79a56f;
  min-width: 320px;
  color: var(--timer-cream);
  background: var(--timer-night);
}

.plant-timer-site * { box-sizing: border-box; }
.plant-timer-site button { font: inherit; }
.plant-timer-site a { color: var(--timer-gold); }
.plant-timer-site :focus-visible {
  outline: 3px solid var(--timer-gold);
  outline-offset: 4px;
}
.plant-timer-site [hidden] { display: none !important; }
.plant-timer-site .eyebrow { color: var(--timer-gold); }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Header */
.timer-site-head {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 18px 24px;
}
.timer-head-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.timer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 18px 7px 8px;
  border: 2px solid rgba(116, 137, 174, 0.8);
  border-radius: 18px;
  color: var(--timer-cream) !important;
  background: rgba(8, 18, 37, 0.88);
  box-shadow: 0 8px 0 -4px rgba(4, 10, 22, 0.76);
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.timer-brand img { width: 40px; height: 40px; border-radius: 11px; }
.timer-brand span { font-family: var(--display); font-size: 24px; letter-spacing: 0.03em; }
.timer-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.timer-nav a {
  padding: 9px 14px;
  border: 2px solid transparent;
  border-radius: 14px;
  color: var(--timer-cream);
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.timer-nav a:hover { color: var(--timer-gold); background: rgba(8, 18, 37, 0.72); }
.timer-nav .timer-nav-cta {
  border-color: #caa657;
  color: #172037;
  background: var(--timer-gold);
  box-shadow: 0 5px 0 -2px #886c32;
}
.timer-nav .timer-nav-cta:hover { color: #172037; background: #ffe6a5; }

/* Immersive timer */
.timer-hero {
  position: relative;
  min-height: 100svh;
  padding: 112px 24px 52px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}
.timer-hero-art,
.timer-hero-art img,
.timer-hero-scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.timer-hero-art { z-index: -3; }
.timer-hero-art img {
  object-fit: cover;
  object-position: 58% 48%;
  filter: saturate(0.92) brightness(0.8);
}
.timer-hero-scrim {
  background:
    radial-gradient(circle at 70% 40%, rgba(10, 24, 43, 0.05), rgba(5, 12, 26, 0.46) 67%),
    linear-gradient(to bottom, rgba(4, 10, 23, 0.26), rgba(4, 10, 23, 0.18) 55%, #081225 100%);
}
.timer-sparkles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.timer-sparkles i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffe490;
  box-shadow: 0 0 6px 2px rgba(255, 226, 128, 0.72);
  animation: timer-firefly 5s ease-in-out infinite var(--delay);
}
@keyframes timer-firefly {
  0%, 100% { transform: translate(0, 0) scale(0.7); opacity: 0.25; }
  45% { transform: translate(12px, -10px) scale(1.1); opacity: 1; }
  75% { transform: translate(-5px, -17px) scale(0.8); opacity: 0.55; }
}

.timer-layout {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(390px, 0.74fr);
  gap: 22px;
  align-items: start;
}
.timer-panel,
.growth-card {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--timer-line);
  border-radius: 28px;
  background: var(--timer-panel);
  box-shadow: 0 15px 0 -7px rgba(3, 8, 19, 0.68), 0 30px 80px rgba(1, 7, 17, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.timer-panel::before,
.growth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #547d5c, var(--timer-gold), #547d5c);
  opacity: 0.86;
}
.timer-panel { padding: 28px 30px 26px; }
.timer-panel h1 {
  max-width: 18ch;
  margin-top: 0;
  font-family: var(--display);
  font-size: clamp(42px, 4.2vw, 54px);
  line-height: 0.98;
  color: var(--timer-cream);
}
.timer-intro {
  margin-top: 10px;
  max-width: 48ch;
  color: var(--timer-mist);
  font-size: 17px;
  line-height: 1.48;
}
.timer-modes {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.timer-modes button {
  min-width: 0;
  min-height: 58px;
  padding: 9px 8px 8px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 2px solid #405170;
  border-radius: 14px;
  color: #aab7cd;
  background: #0a172a;
  box-shadow: 0 5px 0 -2px #030b18, inset 0 1px 0 rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.timer-modes button:hover { color: var(--timer-cream); border-color: #657798; background: #14243d; transform: translateY(-1px); }
.timer-modes button[aria-pressed="true"] {
  border-color: #f7dc91;
  color: #172037;
  background: linear-gradient(#f7dc91, #e8c86f);
  box-shadow: 0 6px 0 -2px #765b25, inset 0 2px 0 rgba(255, 255, 255, 0.42);
}
.timer-modes button:disabled { cursor: default; opacity: 0.58; }
.timer-modes strong { font-family: var(--display); font-size: 18px; font-weight: 400; line-height: 1; }
.timer-modes span { font-size: 12px; line-height: 1.1; }
.pomodoro-set {
  min-height: 50px;
  margin-top: 16px;
  padding: 7px 10px 7px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 2px solid #3e506f;
  border-radius: 14px;
  color: var(--timer-mist);
  background: #0c1a30;
  font-size: 13px;
}
.pomodoro-set > span:first-child { white-space: nowrap; }
.pomodoro-set > span:first-child strong { color: var(--timer-gold); font-family: var(--display); font-size: 18px; font-weight: 400; }
.set-crops { display: grid; grid-template-columns: repeat(4, 42px); gap: 3px; }
.set-crops .seed-sprite { width: 42px; height: 42px; border: 1px solid #33445f; border-radius: 9px; background-color: #101e34; opacity: 0.4; }
.set-crops .seed-sprite.active { border-color: var(--timer-gold); background-color: #203e3a; opacity: 1; box-shadow: 0 0 0 2px rgba(242, 212, 136, 0.09); }
.set-crops .seed-sprite.complete { opacity: 0.82; filter: saturate(0.75); }
.seed-sprite,
.crop-sprite {
  display: block;
  background-repeat: no-repeat;
  background-size: 700% 100%;
  background-position: 66.6667% 0;
  image-rendering: pixelated;
}
.seed-sprite { width: 48px; height: 48px; }
.crop-strawberry { background-image: url("../assets/img/sprites/strawberry.png"); }
.crop-wheat { background-image: url("../assets/img/sprites/wheat.png"); }
.crop-tomato { background-image: url("../assets/img/sprites/tomato.png"); }
.crop-pumpkin { background-image: url("../assets/img/sprites/pumpkin.png"); }
.crop-chamomile { background-image: url("../assets/img/sprites/chamomile.png"); }
.crop-lavender { background-image: url("../assets/img/sprites/lavender.png"); }

.clock {
  margin-top: 12px;
  color: var(--timer-cream);
  font-family: var(--display);
  font-size: clamp(68px, 8vw, 94px);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: 0.02em;
  line-height: 0.92;
  text-align: center;
  text-shadow: 0 5px 0 #26334b;
}
.growth-meter {
  height: 13px;
  margin-top: 16px;
  overflow: hidden;
  border: 2px solid #465879;
  border-radius: 999px;
  background: #071225;
}
.growth-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: repeating-linear-gradient(90deg, #6e9d67 0 16px, #84b67a 16px 30px);
  box-shadow: 0 0 12px rgba(132, 182, 122, 0.42);
  transition: width 500ms linear;
}
.growth-copy {
  min-height: 24px;
  margin-top: 8px;
  color: var(--timer-mist);
  font-size: 14px;
  text-align: center;
}
.timer-controls {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.timer-button,
.sound-toggle,
.harvest-actions button {
  min-height: 48px;
  border: 2px solid #536583;
  border-radius: 14px;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.timer-button:active,
.sound-toggle:active,
.harvest-actions button:active { transform: translateY(2px); }
.timer-start {
  grid-column: 1 / -1;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-color: #c9a551;
  color: #182037;
  background: var(--timer-gold);
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.34), 0 7px 0 -2px #765b25;
}
.timer-start:hover { background: #ffe8aa; transform: translateY(-1px); }
.timer-start.is-pausing { color: var(--timer-cream); border-color: #6e806e; background: #345441; }
.timer-reset,
.sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--timer-mist);
  background: linear-gradient(#172740, #101c31);
  box-shadow: 0 5px 0 -2px #050c19, inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.timer-reset:hover,
.sound-toggle:hover { color: var(--timer-cream); border-color: #7182a0; background: #1b2c48; transform: translateY(-1px); }
.sound-toggle { padding: 0 13px; }
.sound-toggle[aria-pressed="true"] { color: var(--timer-gold); border-color: #8b7848; }

/* Growing scene */
.growth-card { padding: 22px; display: flex; flex-direction: column; }
.growth-card-top {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.06em;
}
.growth-state {
  padding: 3px 9px;
  border: 1px solid #697a99;
  border-radius: 999px;
  color: var(--timer-gold);
  background: #111f36;
  font-size: 15px;
}
.garden-scene {
  position: relative;
  min-height: 320px;
  margin-top: 10px;
  overflow: hidden;
  border: 2px solid #465879;
  border-radius: 20px;
  background:
    radial-gradient(circle at 49% 54%, rgba(108, 152, 94, 0.23), transparent 22%),
    linear-gradient(to bottom, #0c1c37 0 53%, #10283a 53% 100%);
  box-shadow: inset 0 0 60px rgba(2, 7, 16, 0.44);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.garden-scene::before {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 0;
  height: 49%;
  background:
    linear-gradient(rgba(4, 20, 27, 0.28), rgba(4, 13, 18, 0.46)),
    url("../assets/img/sprites/terrain/meadow-live-grain-v1.png"),
    url("../assets/img/sprites/terrain/meadow-live-fabric-v1.png");
  background-position: center, center, center;
  background-repeat: no-repeat, repeat, repeat;
  background-size: 100% 100%, 928px 928px, 1184px 1184px;
  clip-path: polygon(0 9%, 8% 7%, 16% 9%, 25% 6%, 35% 8%, 45% 7%, 55% 9%, 66% 6%, 77% 9%, 87% 7%, 100% 8%, 100% 100%, 0 100%);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.garden-scene::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 13%;
  width: 175px;
  height: 66px;
  transform: translateX(-50%);
  border: 4px solid #806044;
  border-radius: 50%;
  background: repeating-linear-gradient(90deg, #6c4b35 0 12px, #76523a 12px 24px);
  box-shadow: inset 0 8px 0 #3d2d27, 0 8px 0 rgba(6, 12, 20, 0.45);
}
.scene-moon {
  position: absolute;
  top: 30px;
  right: 34px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #f5d581;
  box-shadow: 0 0 22px 5px rgba(244, 215, 135, 0.2);
}
.scene-moon::after {
  content: "";
  position: absolute;
  left: -8px;
  top: -5px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0c1c37;
}
.scene-star { position: absolute; width: 3px; height: 3px; background: #f7e4a2; box-shadow: 0 0 5px #f7e4a2; }
.scene-star-one { left: 17%; top: 18%; }
.scene-star-two { left: 37%; top: 10%; }
.scene-star-three { right: 25%; top: 31%; }
.scene-firefly { position: absolute; z-index: 4; width: 5px; height: 5px; border-radius: 50%; background: #f5db68; box-shadow: 0 0 7px 3px rgba(245, 219, 104, 0.4); animation: scene-firefly 4s ease-in-out infinite; }
.scene-firefly-one { left: 23%; bottom: 31%; }
.scene-firefly-two { right: 19%; bottom: 40%; animation-delay: -2.2s; }
@keyframes scene-firefly { 0%,100% { transform: translate(0,0); opacity: .35; } 50% { transform: translate(9px,-15px); opacity: 1; } }
.crop-sprite {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 13%;
  width: 150px;
  height: 150px;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 3px rgba(2, 8, 15, 0.5));
  transition: filter 300ms ease;
}
.crop-sprite.is-ready { animation: crop-ready 1.8s ease-in-out infinite; filter: drop-shadow(0 0 12px rgba(245, 218, 113, 0.48)) drop-shadow(0 8px 3px rgba(2, 8, 15, 0.5)); }
@keyframes crop-ready { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }
.crop-glow {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 21%;
  width: 190px;
  height: 150px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 205, 116, 0.2), transparent 70%);
}
.soil-shadow { position: absolute; z-index: 6; left: 50%; bottom: 15%; width: 115px; height: 25px; transform: translateX(-50%); border-radius: 50%; background: rgba(20, 14, 13, 0.42); }
.scene-caption { min-height: 43px; margin: 12px 6px 8px; color: var(--timer-mist); font-size: 14px; line-height: 1.45; text-align: center; }

.tiny-garden {
  margin-top: 4px;
  padding: 13px 14px;
  border: 2px solid #405171;
  border-radius: 15px;
  background: #0c192d;
}
.tiny-garden-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tiny-garden h2 { font-family: var(--display); font-size: 20px; color: var(--timer-gold); }
.tiny-garden-head > span { color: #93a2bf; font-size: 12px; }
.harvest-row { margin-top: 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.harvest-item { min-width: 0; min-height: 48px; padding: 4px 7px; display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid #33435f; border-radius: 11px; color: var(--timer-cream); background: #111f36; }
.harvest-item .seed-sprite { width: 38px; height: 38px; flex: 0 0 auto; }
.harvest-item strong { font-family: var(--display); font-size: 18px; font-weight: 400; }

.harvest-card {
  position: absolute;
  z-index: 12;
  inset: auto 22px 22px;
  padding: 20px;
  border: 3px solid var(--timer-gold);
  border-radius: 18px;
  color: var(--timer-cream);
  background: rgba(18, 44, 41, 0.98);
  box-shadow: 0 12px 40px rgba(2, 8, 18, 0.58);
  animation: harvest-in 320ms ease both;
}
@keyframes harvest-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.harvest-card h2 { margin-top: 3px; font-family: var(--display); font-size: 32px; color: var(--timer-cream); }
.harvest-card > p:not(.eyebrow) { margin-top: 5px; color: #c8d7ce; font-size: 14px; }
.harvest-actions { margin-top: 14px; display: flex; gap: 8px; }
.harvest-actions button { flex: 1; min-height: 42px; border-color: #8f7a49; color: #1a2437; background: var(--timer-gold); font-size: 17px; }
.harvest-actions button + button { color: var(--timer-cream); border-color: #597163; background: #284b3d; }

/* Helpful SEO content, kept compact */
.timer-content-wrap { width: min(1020px, calc(100% - 48px)); margin: 0 auto; }
.timer-answer { padding: 86px 0; background: #0a1425; }
.timer-answer-intro { max-width: 780px; }
.timer-answer h1,
.timer-story h2,
.timer-faq > .timer-content-wrap > h2 {
  margin-top: 9px;
  color: var(--timer-cream);
  font-family: var(--display);
  font-size: clamp(38px, 5.4vw, 58px);
  line-height: 1.02;
}
.timer-answer-intro > p:last-child { margin-top: 15px; color: var(--timer-mist); font-size: 19px; line-height: 1.6; }
.timer-steps { margin-top: 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
.timer-steps li { padding: 22px; display: flex; gap: 14px; border: 2px solid #344461; border-radius: 17px; background: #101d32; }
.timer-steps li > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #192139; background: var(--timer-gold); font-family: var(--display); font-size: 21px; }
.timer-steps h3 { color: var(--timer-cream); font-size: 24px; }
.timer-steps p { margin-top: 7px; color: var(--timer-mist); font-size: 15px; line-height: 1.55; }

.timer-story { padding: 86px 0; border-top: 1px solid #24344e; border-bottom: 1px solid #24344e; background: radial-gradient(circle at 15% 30%, rgba(57, 101, 79, 0.23), transparent 35%), #0d182a; }
.timer-story-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 70px; align-items: start; }
.timer-story h2 { max-width: 12ch; }
.timer-story-copy { padding-top: 8px; }
.timer-story-copy p { color: var(--timer-mist); font-size: 18px; line-height: 1.65; }
.timer-story-copy p + p { margin-top: 16px; }
.timer-app-link { display: inline-block; margin-top: 23px; padding: 12px 17px; border: 2px solid #b6954d; border-radius: 12px; color: #172037 !important; background: var(--timer-gold); font-family: var(--display); font-size: 20px; text-decoration: none; box-shadow: 0 6px 0 -2px #725923; }
.timer-app-link:hover { background: #ffe4a1; }

.timer-faq { padding: 82px 0 88px; background: #091322; }
.timer-faq-grid { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.timer-faq details { padding: 0 18px; border: 2px solid #33445f; border-radius: 14px; background: #101d32; }
.timer-faq summary { padding: 17px 30px 17px 0; color: var(--timer-cream); font-family: var(--display); font-size: 21px; line-height: 1.2; cursor: pointer; }
.timer-faq details p { padding: 0 0 18px; color: var(--timer-mist); font-size: 15px; line-height: 1.6; }
.timer-related { margin-top: 24px; color: #93a2bf; font-size: 14px; }

.timer-footer { padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); border-top: 2px solid #283a55; color: #8f9db8; background: #07101d; }
.timer-footer .timer-content-wrap { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 30px; }
.timer-footer-brand { display: flex; align-items: center; gap: 10px; color: var(--timer-cream); font-family: var(--display); font-size: 23px; }
.timer-footer-brand img { border-radius: 11px; }
.timer-footer nav { justify-self: end; display: flex; flex-wrap: wrap; gap: 14px; }
.timer-footer nav a { color: #aab6ce; font-size: 14px; }
.timer-footer p { grid-column: 1 / -1; font-size: 12px; line-height: 1.5; }

@media (max-width: 980px) {
  .timer-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr); }
  .timer-panel { padding-inline: 26px; }
  .timer-panel h1 { font-size: clamp(42px, 5.4vw, 52px); }
  .garden-scene { min-height: 320px; }
}

@media (max-width: 800px) {
  .timer-site-head { padding: 13px 16px; }
  .timer-brand { min-height: 48px; padding: 5px 13px 5px 6px; }
  .timer-brand img { width: 36px; height: 36px; }
  .timer-brand span { font-size: 21px; }
  .timer-nav a { display: none; }
  .timer-nav .timer-nav-cta { display: block; padding: 7px 11px; font-size: 16px; }
  .timer-hero { padding: 92px 16px 44px; }
  .timer-hero-art img { object-position: 67% 48%; }
  .timer-layout { grid-template-columns: 1fr; width: min(620px, 100%); }
  .garden-scene { min-height: 330px; }
  .timer-steps { grid-template-columns: 1fr; }
  .timer-story-grid { grid-template-columns: 1fr; gap: 26px; }
  .timer-story h2 { max-width: 15ch; }
  .timer-faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .timer-hero { padding-inline: 10px; }
  .timer-panel,
  .growth-card { border-width: 2px; border-radius: 22px; }
  .timer-panel { padding: 25px 17px 22px; }
  .timer-panel h1 { max-width: 13ch; font-size: clamp(40px, 11.4vw, 49px); }
  .timer-intro { font-size: 15px; }
  .timer-modes strong { font-size: 16px; }
  .timer-modes span { font-size: 11px; }
  .pomodoro-set { padding-left: 10px; }
  .set-crops { grid-template-columns: repeat(4, 36px); }
  .set-crops .seed-sprite { width: 36px; height: 36px; }
  .seed-sprite { width: 42px; height: 42px; }
  .clock { font-size: clamp(72px, 25vw, 102px); }
  .timer-controls { grid-template-columns: 1fr 1fr; }
  .growth-card { padding: 14px; }
  .garden-scene { min-height: 330px; }
  .crop-sprite { width: 142px; height: 142px; }
  .harvest-card { inset: auto 14px 14px; }
  .harvest-actions { flex-direction: column; }
  .timer-content-wrap { width: min(100% - 34px, 1020px); }
  .timer-answer,
  .timer-story,
  .timer-faq { padding-block: 64px; }
  .timer-answer-intro > p:last-child,
  .timer-story-copy p { font-size: 17px; }
  .timer-footer .timer-content-wrap { grid-template-columns: 1fr; }
  .timer-footer nav { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .timer-sparkles i,
  .scene-firefly,
  .crop-sprite.is-ready { animation: none !important; }
}

/* One-screen Pomodoro console */
.timer-layout {
  width: min(620px, 100%);
  display: block;
}

.timer-console {
  --timer-progress: 0%;
  position: relative;
  min-height: 680px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  overflow: hidden;
  isolation: isolate;
  border: 3px solid #637392;
  border-radius: 34px;
  background: radial-gradient(circle at 50% 24%, rgba(36, 61, 91, 0.96), rgba(15, 31, 53, 0.98) 58%);
  box-shadow: 0 16px 0 -7px rgba(3, 8, 19, 0.75), 0 34px 90px rgba(1, 7, 17, 0.46);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.timer-console::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #547d5c, var(--timer-gold), #547d5c);
}

.timer-console::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 57%;
  background:
    linear-gradient(rgba(5, 24, 29, 0.34), rgba(4, 14, 19, 0.55)),
    url("../assets/img/sprites/terrain/meadow-live-grain-v1.png"),
    url("../assets/img/sprites/terrain/meadow-live-fabric-v1.png");
  background-position: center, center, center;
  background-repeat: no-repeat, repeat, repeat;
  background-size: 100% 100%, 928px 928px, 1184px 1184px;
  clip-path: polygon(0 7%, 9% 5%, 18% 8%, 28% 4%, 39% 7%, 50% 5%, 61% 8%, 72% 4%, 83% 7%, 92% 5%, 100% 7%, 100% 100%, 0 100%);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.console-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.console-button {
  width: 64px;
  height: 64px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 3px solid #657795;
  border-radius: 16px;
  color: var(--timer-cream);
  background: #15243b;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08), 0 7px 0 -2px #050b16;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.console-button:hover {
  border-color: #8797b0;
  background: #20334f;
  transform: translateY(-1px);
}

.console-button:active { transform: translateY(3px); box-shadow: 0 3px 0 -2px #050b16; }

.console-button.timer-start {
  grid-column: auto;
  min-height: 0;
  border-color: #f6dc95;
  color: #19223a;
  background: linear-gradient(#f7dc91, #e6c36b);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.38), 0 7px 0 -2px #765b25;
}

.console-button.timer-start:hover { background: #ffe8aa; }
.console-button.timer-start.is-pausing { color: var(--timer-cream); border-color: #7fa07c; background: #31553f; }
.console-button.sound-toggle { padding: 0; }
.console-button.sound-toggle[aria-pressed="true"] { color: #19223a; border-color: #f6dc95; background: var(--timer-gold); }

.timer-ring {
  width: min(350px, 72vw);
  aspect-ratio: 1;
  padding: 15px;
  border-radius: 50%;
  background: conic-gradient(from -90deg, var(--timer-gold) var(--timer-progress), rgba(237, 235, 214, 0.3) 0);
  box-shadow: 0 10px 28px rgba(1, 8, 18, 0.38), 0 0 36px rgba(242, 212, 136, 0.08);
}

.timer-ring-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 2px solid rgba(238, 223, 181, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, rgba(123, 166, 103, 0.2), transparent 28%),
    linear-gradient(rgba(8, 23, 38, 0.42), rgba(8, 22, 31, 0.58)),
    url("../assets/img/sprites/terrain/meadow-live-grain-v1.png"),
    url("../assets/img/sprites/terrain/meadow-live-fabric-v1.png");
  background-position: center, center, center, center;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-size: 100% 100%, 100% 100%, 928px 928px, 1184px 1184px;
  box-shadow: inset 0 0 48px rgba(3, 9, 19, 0.38);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.timer-console .crop-sprite {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 22px;
  bottom: auto;
  width: 108px;
  height: 108px;
  transform: translateX(-50%);
  filter: drop-shadow(0 7px 3px rgba(2, 8, 15, 0.48));
}

.timer-console .soil-shadow {
  z-index: 2;
  left: 50%;
  top: 103px;
  bottom: auto;
  width: 84px;
  height: 18px;
}

.timer-console .clock {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: 53%;
  margin: 0;
  color: var(--timer-cream);
  font-size: clamp(68px, 12vw, 92px);
  transform: translateY(-18%);
  text-shadow: 0 5px 0 #26334b, 0 12px 24px rgba(2, 8, 16, 0.35);
}

.timer-console .pomodoro-set {
  width: min(440px, 100%);
  min-height: 68px;
  margin: 0;
  padding: 9px 12px 9px 18px;
  border-color: rgba(228, 230, 218, 0.34);
  border-radius: 17px;
  color: #bec8d7;
  background: rgba(7, 17, 31, 0.74);
  font-family: var(--display);
  font-size: 18px;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.timer-console .pomodoro-set > span:first-child strong {
  color: var(--timer-cream);
  font-size: 27px;
}

.timer-console .set-crops { grid-template-columns: repeat(4, 46px); gap: 4px; }
.timer-console .set-crops .seed-sprite { width: 46px; height: 46px; border: 0; background-color: rgba(9, 23, 35, 0.52); opacity: 0.36; }
.timer-console .set-crops .seed-sprite.active { border: 2px solid var(--timer-gold); background-color: rgba(37, 66, 53, 0.88); opacity: 1; }
.timer-console .set-crops .seed-sprite.complete { opacity: 0.9; }

.timer-console .timer-modes {
  width: 100%;
  margin: 0;
  gap: 12px;
}

.timer-console .timer-modes button {
  min-height: 58px;
  border: 2px solid #71809a;
  border-radius: 15px;
  color: #c2cad8;
  background: rgba(19, 31, 48, 0.88);
  box-shadow: 0 7px 0 -3px rgba(2, 8, 16, 0.65), inset 0 2px 0 rgba(255, 255, 255, 0.06);
  font-family: var(--display);
  font-size: 17px;
}

.timer-console .timer-modes button:hover { color: var(--timer-cream); border-color: #94a1b6; background: #23374f; }
.timer-console .timer-modes button[aria-pressed="true"] {
  border-color: #f2d488;
  color: #172037;
  background: linear-gradient(#f2d488, #dfba60);
  box-shadow: 0 7px 0 -3px #765b25, inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.timer-console .harvest-card { inset: 50% 34px auto; transform: translateY(-50%); animation: none; }

@media (max-width: 560px) {
  .timer-hero { padding: 86px 10px 32px; }
  .timer-console { min-height: 615px; padding: 24px 18px; gap: 18px; border-width: 2px; border-radius: 26px; }
  .console-button { width: 56px; height: 56px; border-width: 2px; border-radius: 14px; font-size: 26px; }
  .timer-ring { width: min(290px, 78vw); padding: 12px; }
  .timer-console .crop-sprite { top: 17px; width: 92px; height: 92px; }
  .timer-console .soil-shadow { top: 86px; width: 72px; }
  .timer-console .clock { top: 54%; font-size: clamp(64px, 20vw, 78px); }
  .timer-console .pomodoro-set { min-height: 60px; padding-left: 13px; font-size: 15px; }
  .timer-console .pomodoro-set > span:first-child strong { font-size: 23px; }
  .timer-console .set-crops { grid-template-columns: repeat(4, 38px); }
  .timer-console .set-crops .seed-sprite { width: 38px; height: 38px; }
  .timer-console .timer-modes { gap: 7px; }
  .timer-console .timer-modes button { min-height: 54px; padding-inline: 4px; border-radius: 13px; font-size: 14px; line-height: 1.05; }
  .timer-console .harvest-card { inset: 50% 18px auto; }
}
