:root {
  color-scheme: light;
  --bg: #f5fef9;
  --card: rgba(255, 255, 255, 0.94);
  --line: #c8e6c9;
  --text: #1b5e20;
  --muted: #558b2f;
  --primary: #43a047;
  --primary-soft: #e8f5e9;
  --success: #2e7d32;
  --shadow: 0 18px 45px rgba(27, 94, 32, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 50%, #e0f2f1 100%);
  color: var(--text);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

body::before {
  width: 320px;
  height: 320px;
  top: -110px;
  right: -90px;
  background: radial-gradient(circle, rgba(102, 187, 106, 0.22) 0%, rgba(102, 187, 106, 0) 68%);
  animation: auroraDrift 16s ease-in-out infinite;
}

body::after {
  width: 260px;
  height: 260px;
  bottom: -90px;
  left: -80px;
  background: radial-gradient(circle, rgba(56, 142, 60, 0.18) 0%, rgba(56, 142, 60, 0) 70%);
  animation: auroraDrift 18s ease-in-out infinite reverse;
}

button {
  border: 1px solid #c8e6c9;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  color: var(--text);
  transition: all 0.18s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(67, 160, 71, 0.15);
}

button.primary-btn {
  background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
  color: white;
  border: none;
  box-shadow: 0 6px 20px rgba(67, 160, 71, 0.3);
  position: relative;
  overflow: hidden;
}

button.primary-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255,255,255,0) 25%, rgba(255,255,255,0.38) 50%, rgba(255,255,255,0) 72%);
  transform: translateX(-115%);
  animation: sheenSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

button.primary-btn:hover {
  box-shadow: 0 10px 28px rgba(67, 160, 71, 0.4);
}

.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.hero,
.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 248, 233, 0.5) 100%);
  border: 1px solid rgba(200, 230, 201, 0.6);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(27, 94, 32, 0.08), 0 0 0 1px rgba(76, 175, 80, 0.04);
}

.hero {
  padding: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  background: linear-gradient(90deg, #1b5e20 0%, #43a047 22%, #7cb342 50%, #43a047 78%, #1b5e20 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleFlow 7s linear infinite;
}

.hero-text {
  margin-top: 12px;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.hero-card {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #66bb6a 0%, #43a047 50%, #2e7d32 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 14px 30px rgba(67, 160, 71, 0.35);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.24) 48%, rgba(255, 255, 255, 0) 74%);
  transform: translateX(-115%);
  animation: sheenSweep 5.6s ease-in-out infinite;
  pointer-events: none;
}

.hero-card-label {
  margin: 0;
  opacity: 0.8;
}

.hero-card-value {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}

.card {
  padding: 22px;
}

.sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid rgba(200, 230, 201, 0.5);
  background: linear-gradient(135deg, rgba(241, 248, 233, 0.5) 0%, rgba(232, 245, 233, 0.2) 100%);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(67, 160, 71, 0.15);
  position: relative;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #43a047 0%, #66bb6a 50%, transparent 100%);
  border-radius: 1px;
}

.section-heading h2,
.stat-card h2,
.essay-card h3 {
  margin: 0;
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(67, 160, 71, 0.2);
  box-shadow: 0 2px 6px rgba(67, 160, 71, 0.08);
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 75%);
  transform: translateX(-120%);
  animation: sheenSweep 5s ease-in-out 1.8s infinite;
  pointer-events: none;
}

.day-list {
  display: grid;
  gap: 10px;
}

.day-btn {
  width: 100%;
  text-align: left;
  padding: 14px;
  background: linear-gradient(135deg, rgba(241, 248, 233, 0.7) 0%, rgba(232, 245, 233, 0.3) 100%);
  border: 1px solid rgba(200, 230, 201, 0.4);
  transition: all 0.2s ease;
}

.day-btn:hover {
  border-color: rgba(67, 160, 71, 0.4);
  background: linear-gradient(135deg, rgba(224, 242, 241, 0.8) 0%, rgba(200, 230, 201, 0.4) 100%);
}

.day-btn strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.day-btn span {
  color: var(--muted);
  font-size: 13px;
}

.day-btn.active {
  border-color: rgba(67, 160, 71, 0.5);
  background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
}

.day-btn.done {
  box-shadow: inset 0 0 0 1px rgba(67, 160, 71, 0.25);
}

.content {
  display: grid;
  gap: 24px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.day-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
  min-height: 150px;
  animation: floatStat 5s ease-in-out infinite;
}

.stat-card:nth-child(2) {
  animation-delay: -1.7s;
}

.stat-card:nth-child(3) {
  animation-delay: -3.4s;
}

.stat-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.muted {
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.word-card {
  border: 1px solid rgba(200, 230, 201, 0.6);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(241, 248, 233, 0.65) 0%, rgba(255, 255, 255, 0.92) 100%);
  transition: box-shadow 0.2s ease;
}

.word-card:hover {
  box-shadow: 0 8px 20px rgba(67, 160, 71, 0.1);
}

.word-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.word-title {
  margin: 0;
  font-size: 24px;
}

.word-ipa {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.word-meta {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.meaning-box {
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  color: var(--text);
  border: 1px solid rgba(200, 230, 201, 0.5);
  box-shadow: 0 2px 8px rgba(67, 160, 71, 0.05);
}

.hidden {
  display: none;
}

.word-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.remember-btn.active {
  background: rgba(31, 157, 104, 0.14);
  color: var(--success);
}

.essay-card {
  display: grid;
  gap: 18px;
}

.essay-heading {
  align-items: flex-start;
}

.essay-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.essay-text {
  min-height: 180px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f1f8e9 0%, rgba(255, 255, 255, 0.92) 100%);
  border: 1px solid rgba(200, 230, 201, 0.5);
  line-height: 1.9;
}

.sentence-list {
  display: grid;
  gap: 12px;
}

.sentence-card {
  border: 1px solid rgba(200, 230, 201, 0.5);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(241, 248, 233, 0.55) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.sentence-card p {
  margin: 0 0 10px;
  line-height: 1.8;
}

.sentence-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-footer p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px;
}

.legal-page .card {
  margin-bottom: 18px;
}

.legal-page h1,
.legal-page h2 {
  margin-top: 0;
}

.legal-page p,
.legal-page li {
  line-height: 1.8;
}

.cute-home {
  display: grid;
  gap: 24px;
}

.cute-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  background: linear-gradient(135deg, #f1f8e9 0%, #e0f2f1 100%);
  position: relative;
  overflow: hidden;
}

.cute-hero::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165, 214, 167, 0.38) 0%, rgba(165, 214, 167, 0) 72%);
  animation: leafPulse 7.5s ease-in-out infinite;
  pointer-events: none;
}

.cute-hero-main .hero-text {
  margin-bottom: 14px;
}

.cute-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border: 1px solid #c8e6c9;
  transition: all 0.18s ease;
}

.cute-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(67, 160, 71, 0.15);
  background: linear-gradient(135deg, #e0f2f1 0%, #e8f5e9 100%);
}

.cute-link-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
  border: none;
  box-shadow: 0 6px 20px rgba(67, 160, 71, 0.3);
  position: relative;
  overflow: hidden;
}

.cute-link-btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255,255,255,0) 25%, rgba(255,255,255,0.34) 50%, rgba(255,255,255,0) 72%);
  transform: translateX(-115%);
  animation: sheenSweep 3.2s ease-in-out 0.9s infinite;
  pointer-events: none;
}

.cute-link-btn-primary:hover {
  background: linear-gradient(135deg, #7cb342 0%, #558b2f 100%);
  box-shadow: 0 12px 32px rgba(67, 160, 71, 0.4);
}

.cute-link-btn-red {
  color: #d32f2f !important;
  background: linear-gradient(135deg, #ffcdd2 0%, #e57373 100%) !important;
  border: 1px solid #d32f2f !important;
}
.cute-link-btn-red:hover {
  background: linear-gradient(135deg, #e57373 0%, #c62828 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 32px rgba(211, 47, 47, 0.18);
}

.cute-hero-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: center;
}

.hero-illus {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(200, 230, 201, 0.9);
  background: #fff;
  box-shadow: var(--shadow);
}

.cute-bubble {
  height: 92px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 226, 242, 0.95);
  box-shadow: var(--shadow);
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.day-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(232, 245, 233, 0.9) 0%, rgba(200, 230, 201, 0.55) 100%);
  border: 1px solid rgba(67, 160, 71, 0.22);
  transition: all 0.2s ease;
}

.day-chip:hover {
  background: linear-gradient(135deg, rgba(200, 230, 201, 0.95) 0%, rgba(165, 214, 167, 0.62) 100%);
  transform: translateY(-1px);
}

.story-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.story-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.story-card {
  border: 1px solid rgba(200, 230, 201, 0.6);
  background: linear-gradient(135deg, rgba(241, 248, 233, 0.8) 0%, rgba(232, 245, 233, 0.4) 100%);
  border-radius: 16px;
  padding: 14px 14px 14px 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #a5d6a7 0%, #43a047 50%, #66bb6a 100%);
  border-radius: 4px 0 0 4px;
  opacity: 0.55;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.story-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 70%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.story-card:hover {
  border-color: var(--primary);
  box-shadow: 0 14px 32px rgba(67, 160, 71, 0.22);
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(232, 245, 233, 0.9) 0%, rgba(224, 242, 241, 0.5) 100%);
}

.story-card:hover::before {
  opacity: 1;
  width: 6px;
}

.story-card:hover::after {
  transform: translateX(130%);
}

.story-card img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(200, 230, 201, 0.75);
  margin-bottom: 10px;
}

.story-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.story-card p {
  margin: 0;
  font-size: 14px;
}

.outcomes-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.outcome-card {
  min-height: 180px;
}

.outcome-number {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  background: linear-gradient(90deg, #1b5e20 0%, #43a047 25%, #7cb342 55%, #43a047 75%, #2e7d32 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleFlow 5.5s linear infinite;
}

.outcome-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.streak-badge {
  margin: 10px 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff0d9;
  color: #9a5b00;
  font-weight: 700;
  font-size: 13px;
}

.farm-game-hero {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 18px;
  align-items: start;
  background: linear-gradient(180deg, #f7fdff 0%, #eef8ff 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}

.farm-game-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 240px;
  height: 140px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  filter: blur(6px);
  animation: cloudFloat 7s ease-in-out infinite;
  pointer-events: none;
}

.farm-hero-right {
  display: grid;
  gap: 10px;
}

.farm-hero-art {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(200, 230, 201, 0.92);
  box-shadow: 0 14px 30px rgba(67, 160, 71, 0.16);
}

.farm-game-stats {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}

.farm-game-stats p {
  margin: 0 0 8px;
}

.farm-game-stats p:last-child {
  margin-bottom: 0;
}

.farm-game-stats-inline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(241, 248, 233, 0.6) 0%, rgba(232, 245, 233, 0.3) 100%);
}

.farm-game-stats-inline p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(67, 160, 71, 0.2);
  background: linear-gradient(135deg, rgba(241, 248, 233, 0.8) 0%, rgba(232, 245, 233, 0.4) 100%);
  font-weight: 700;
  text-align: center;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(67, 160, 71, 0.06);
}

.farm-game-layout {
  grid-template-columns: 330px 1fr;
  margin-top: 14px;
}

.farm-day-picker {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}

#game-day-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 12px;
}

.seed-list {
  display: grid;
  gap: 8px;
}

.seed-item {
  width: 100%;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 4px 10px;
  border: 1px solid rgba(200, 230, 201, 0.6);
  background: linear-gradient(135deg, rgba(241, 248, 233, 0.8) 0%, rgba(232, 245, 233, 0.4) 100%);
  text-align: left;
  box-shadow: 0 6px 14px rgba(67, 160, 71, 0.06);
  cursor: grab;
}

.seed-item:active {
  cursor: grabbing;
}

.seed-item .seed-icon {
  grid-row: span 2;
}

.seed-item .seed-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.seed-item .seed-word {
  font-weight: 700;
}

.seed-item .seed-meaning {
  color: var(--muted);
  font-size: 12px;
}

.seed-item.active {
  border-color: rgba(67, 160, 71, 0.5);
  background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
  transform: translateY(-1px) scale(1.01);
}

.seed-item.dragging {
  opacity: 0.55;
  transform: scale(0.98);
}

.drag-ghost {
  position: fixed;
  transform: translate(-50%, -50%) scale(0.92);
  width: 160px;
  z-index: 40;
  pointer-events: none;
  opacity: 0.92;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
}

.farm-main-content {
  gap: 16px;
}

.farm-stage {
  position: relative;
  min-height: 640px;
  margin-top: 14px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 251, 200, 0.34) 0%, transparent 26%),
    linear-gradient(180deg, #7fd6ff 0%, #b8ebff 24%, #d8f1b2 24.5%, #98d953 43%, #7fbe3b 62%, #5d9f27 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 24px 48px rgba(32, 92, 12, 0.28);
}

.farm-stage > [aria-hidden="true"] {
  pointer-events: none;
}

.farm-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 55%, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 14px),
    radial-gradient(circle at 19% 52%, rgba(255, 255, 255, 0.18) 0 1.5px, transparent 1.5px 10px),
    radial-gradient(circle at 78% 78%, rgba(255, 245, 180, 0.24) 0 2px, transparent 2px 18px),
    radial-gradient(circle at 84% 76%, rgba(255, 255, 255, 0.15) 0 1.5px, transparent 1.5px 12px),
    radial-gradient(circle at 67% 24%, rgba(255, 251, 198, 0.22) 0 2px, transparent 2px 16px),
    radial-gradient(circle at 30% 72%, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 15px);
  opacity: 0.95;
  animation: sparkleDrift 9.5s ease-in-out infinite;
}

.farm-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 58% 30%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 28%, transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, transparent 30%, rgba(70, 120, 20, 0.16) 100%);
}

.farm-stage-sky {
  position: absolute;
  inset: 0 0 auto;
  height: 34%;
}

.farm-stage-sky::before,
.farm-stage-sky::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  filter: blur(4px);
}

.farm-stage-sky::before {
  width: 180px;
  height: 56px;
  left: 38%;
  top: 10%;
  animation: cloudFloat 9s ease-in-out infinite;
}

.farm-stage-sky::after {
  width: 132px;
  height: 40px;
  left: 62%;
  top: 6%;
  animation: cloudFloat 11s ease-in-out -2s infinite;
}

.farm-stage-sun {
  position: absolute;
  top: -36px;
  right: -10px;
  width: 280px;
  height: 280px;
  z-index: 0;
}

.farm-stage-sun-core,
.farm-stage-sun-rays {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.farm-stage-sun-core {
  width: 122px;
  height: 122px;
  right: 44px;
  top: 18px;
  background: radial-gradient(circle, rgba(255, 252, 206, 0.98) 0%, rgba(255, 232, 124, 0.9) 55%, rgba(255, 232, 124, 0) 72%);
  box-shadow: 0 0 60px rgba(255, 231, 115, 0.46);
  animation: sunPulse 6.5s ease-in-out infinite;
}

.farm-stage-sun-rays {
  background: conic-gradient(from 0deg, rgba(255, 240, 150, 0.2) 0deg 16deg, transparent 16deg 34deg, rgba(255, 240, 150, 0.12) 34deg 48deg, transparent 48deg 70deg, rgba(255, 240, 150, 0.18) 70deg 84deg, transparent 84deg 360deg);
  filter: blur(1px);
  transform-origin: 78% 25%;
  animation: sunSweep 18s linear infinite;
  opacity: 0.9;
}

.farm-stage-mountains {
  position: absolute;
  left: 0;
  right: 0;
  top: 12%;
  height: 30%;
  z-index: 0;
}

.farm-stage-mountains::before,
.farm-stage-mountains::after {
  content: "";
  position: absolute;
  inset: 0;
}

.farm-stage-mountains::before {
  background:
    linear-gradient(145deg, transparent 0 18%, #b8bfd1 18% 31%, transparent 31% 100%),
    linear-gradient(140deg, transparent 0 43%, #8ca0c6 43% 71%, transparent 71% 100%),
    linear-gradient(145deg, transparent 0 62%, #97abc9 62% 100%);
  clip-path: polygon(14% 74%, 27% 34%, 39% 72%, 52% 26%, 69% 74%, 82% 38%, 100% 75%, 100% 100%, 0 100%, 0 72%);
  opacity: 0.8;
}

.farm-stage-mountains::after {
  background: linear-gradient(140deg, #99d45b 0%, #84c246 40%, #5f9730 100%);
  clip-path: polygon(0 100%, 0 72%, 18% 58%, 32% 69%, 48% 46%, 63% 67%, 78% 42%, 100% 70%, 100% 100%);
  box-shadow: inset 0 18px 18px rgba(255, 255, 255, 0.18);
}

.farm-stage-path {
  position: absolute;
  left: 16%;
  top: 21%;
  width: 58%;
  height: 24%;
  background: linear-gradient(135deg, rgba(255, 241, 179, 0.92) 0%, rgba(242, 224, 155, 0.82) 100%);
  clip-path: polygon(0 34%, 20% 18%, 52% 8%, 100% 0, 89% 36%, 66% 44%, 49% 56%, 30% 74%, 14% 92%, 0 84%);
  filter: drop-shadow(0 14px 10px rgba(105, 88, 18, 0.14));
  opacity: 0.9;
}

.farm-stage-house {
  position: absolute;
  left: 2%;
  top: 28%;
  width: 108px;
  height: 108px;
  z-index: 1;
}

.farm-stage-house-body,
.farm-stage-house-roof {
  position: absolute;
  display: block;
}

.farm-stage-house-body {
  left: 18px;
  top: 36px;
  width: 66px;
  height: 54px;
  border-radius: 10px 10px 14px 14px;
  background: linear-gradient(180deg, #fffdf7 0%, #f1ead6 100%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

.farm-stage-house-body::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  width: 14px;
  height: 18px;
  background: #8fd6ff;
  border-radius: 6px;
  box-shadow: 36px 0 0 #8fd6ff;
}

.farm-stage-house-body::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: 0;
  width: 16px;
  height: 26px;
  background: linear-gradient(180deg, #b67a3d 0%, #8d5420 100%);
  border-radius: 5px 5px 0 0;
}

.farm-stage-house-roof {
  left: 8px;
  top: 12px;
  width: 86px;
  height: 42px;
  background: linear-gradient(180deg, #d1893f 0%, #a95f1f 100%);
  clip-path: polygon(50% 0, 100% 68%, 0 68%);
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.16));
}

.farm-stage-windmill {
  position: absolute;
  left: 46%;
  top: 20%;
  width: 100px;
  height: 132px;
  z-index: 1;
}

.farm-stage-windmill-tower,
.farm-stage-windmill-blades {
  position: absolute;
  display: block;
}

.farm-stage-windmill-tower {
  left: 38px;
  bottom: 0;
  width: 24px;
  height: 82px;
  background: linear-gradient(180deg, #d39d59 0%, #a76c2d 100%);
  clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%);
}

.farm-stage-windmill-blades {
  left: 16px;
  top: 2px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background:
    linear-gradient(0deg, transparent 45%, #f4ecd0 45% 55%, transparent 55%),
    linear-gradient(90deg, transparent 45%, #f4ecd0 45% 55%, transparent 55%);
  transform-origin: center;
  animation: windmillSpin 8s linear infinite;
}

.farm-stage-windmill-blades::before,
.farm-stage-windmill-blades::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 45%, #f4ecd0 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #f4ecd0 45% 55%, transparent 55%);
}

.farm-stage-windmill-blades::after {
  width: 12px;
  height: 12px;
  inset: 28px;
  background: #a3682a;
  box-shadow: 0 0 0 3px rgba(255, 242, 206, 0.7);
}

.farm-stage-forest {
  position: absolute;
  right: 8%;
  top: 26%;
  width: 30%;
  height: 22%;
  z-index: 1;
  background:
    radial-gradient(circle at 10% 80%, #2f7e31 0 18px, transparent 19px),
    radial-gradient(circle at 24% 72%, #3d8f39 0 24px, transparent 25px),
    radial-gradient(circle at 40% 82%, #2d7230 0 19px, transparent 20px),
    radial-gradient(circle at 57% 73%, #4b9c43 0 23px, transparent 24px),
    radial-gradient(circle at 76% 80%, #2f7e31 0 18px, transparent 19px),
    radial-gradient(circle at 92% 70%, #438a39 0 22px, transparent 23px);
  filter: drop-shadow(0 14px 12px rgba(25, 60, 10, 0.18));
}

.farm-stage-bush {
  position: absolute;
  bottom: 7%;
  width: 110px;
  height: 52px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 12% 70%, #88d255 0 20px, transparent 21px),
    radial-gradient(circle at 32% 58%, #63ba3d 0 23px, transparent 24px),
    radial-gradient(circle at 56% 66%, #7bc84c 0 20px, transparent 21px),
    radial-gradient(circle at 82% 62%, #58aa34 0 22px, transparent 23px);
  filter: drop-shadow(0 10px 12px rgba(20, 70, 12, 0.18));
  z-index: 1;
}

.farm-stage-bush-left {
  left: 2%;
  bottom: 31%;
}

.farm-stage-bush-right {
  right: 3%;
  bottom: 2%;
  width: 150px;
}

.farm-stage-rocks {
  position: absolute;
  right: 7%;
  top: 44%;
  width: 68px;
  height: 56px;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 72%, #e5e5df 0 14px, transparent 15px),
    radial-gradient(circle at 46% 46%, #cac9c6 0 22px, transparent 23px),
    radial-gradient(circle at 76% 74%, #f1f1ea 0 13px, transparent 14px);
  filter: drop-shadow(0 8px 10px rgba(40, 40, 40, 0.14));
}

.farm-stage-glow {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: 68%;
  height: 36%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 255, 120, 0.22) 0%, rgba(220, 255, 120, 0.1) 42%, transparent 72%);
  filter: blur(8px);
  animation: mistFloat 8s ease-in-out infinite;
}

.farm-stage-glow::before,
.farm-stage-glow::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  pointer-events: none;
}

.farm-stage-glow::before {
  top: -248px;
  width: 130%;
  height: 86px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.12) 45%, rgba(255, 255, 255, 0) 100%);
  filter: blur(14px);
  opacity: 0.72;
}

.farm-stage-glow::after {
  top: -198px;
  width: 94%;
  height: 52px;
  background: linear-gradient(180deg, rgba(235, 250, 220, 0.28) 0%, rgba(235, 250, 220, 0.08) 62%, rgba(235, 250, 220, 0) 100%);
  filter: blur(10px);
  opacity: 0.78;
}

.plot-grid {
  display: grid;
  grid-template-columns: repeat(3, 68px);
  grid-template-rows: repeat(3, 68px);
  column-gap: 8px;
  row-gap: 8px;
  justify-content: center;
  padding: 0;
  border-radius: 18px;
  border: none;
  background: transparent;
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  overflow: visible;
  z-index: 3;
}

.plot-grid::before {
  display: none;
}

.plot-grid::after {
  content: "";
  position: absolute;
  left: -100px;
  right: -100px;
  top: -30px;
  bottom: -46px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 240, 90, 0.16) 0%, rgba(180, 240, 90, 0.08) 48%, transparent 74%);
  pointer-events: none;
  z-index: -1;
}

.plot-item {
  width: 68px;
  height: 68px;
  min-height: 0;
  border: 1px solid rgba(146, 159, 76, 0.42);
  border-radius: 11px;
  background:
    linear-gradient(155deg, rgba(181, 194, 96, 0.72) 0%, rgba(165, 178, 85, 0.68) 52%, rgba(149, 163, 75, 0.64) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  z-index: 1;
  color: #fff;
  box-shadow:
    1px 4px 10px rgba(58, 82, 31, 0.14),
    inset 0 1px 6px rgba(226, 239, 152, 0.32),
    inset 0 -2px 5px rgba(86, 112, 41, 0.14);
  cursor: pointer;
  transform: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: visible;
}

.plot-item::before {
  display: none;
}

.plot-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(232, 244, 168, 0.2) 0%, rgba(232, 244, 168, 0) 48%);
  opacity: 0.72;
}

.plot-item:hover {
  transform: none;
  box-shadow:
    2px 6px 14px rgba(50, 76, 25, 0.2),
    inset 0 2px 8px rgba(235, 247, 168, 0.35),
    inset 0 -3px 6px rgba(76, 95, 33, 0.16);
}

.plot-inner {
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  width: 100%;
  pointer-events: none;
}

.plot-art-wrap {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
}

.plot-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center bottom;
}

.plot-item .plot-title {
  font-size: 7px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  line-height: 1.2;
  max-width: 42px;
}

.plot-item .plot-subtitle {
  display: none;
}

.plot-progress {
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  overflow: hidden;
}

.plot-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffe082 0%, #fff8b0 100%);
  border-radius: inherit;
  transition: width 0.4s ease;
}

.plot-item.ready {
  background: linear-gradient(160deg, #d19a60 0%, #c18249 54%, #ad6f3d 100%);
  border-color: rgba(155, 97, 46, 0.9);
  box-shadow:
    2px 6px 14px rgba(0, 0, 0, 0.2),
    inset 0 2px 7px rgba(250, 208, 142, 0.24),
    inset 0 -3px 8px rgba(114, 66, 29, 0.22);
}

.plot-item.ready .plot-art {
  animation: harvestBounce 1.4s ease-in-out infinite;
}

.plot-item.drop-target {
  outline: 3px dashed rgba(255, 255, 255, 0.95);
  outline-offset: -4px;
  box-shadow:
    4px 8px 18px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(120, 220, 80, 0.65),
    inset 0 0 0 999px rgba(130, 200, 90, 0.22);
}

.plot-item.growing {
  background: linear-gradient(160deg, #cf9458 0%, #be7f45 54%, #aa6a38 100%);
  border-color: rgba(153, 95, 46, 0.86);
}

.plot-item.empty {
  background: linear-gradient(155deg, rgba(181, 194, 96, 0.72) 0%, rgba(165, 178, 85, 0.68) 52%, rgba(149, 163, 75, 0.64) 100%);
  border-color: rgba(146, 159, 76, 0.42);
}

.plot-item.empty::after {
  background:
    radial-gradient(circle at 24% 30%, rgba(214, 226, 132, 0.28) 0 4px, transparent 4px 14px),
    radial-gradient(circle at 66% 48%, rgba(128, 151, 63, 0.14) 0 4px, transparent 4px 14px),
    linear-gradient(180deg, rgba(233, 244, 173, 0.26) 0%, rgba(233, 244, 173, 0) 42%);
  opacity: 0.86;
}

.plot-item.growing::after,
.plot-item.ready::after {
  background:
    radial-gradient(circle at 22% 30%, rgba(242, 201, 147, 0.24) 0 4px, transparent 4px 13px),
    radial-gradient(circle at 63% 42%, rgba(136, 80, 36, 0.18) 0 5px, transparent 5px 14px),
    radial-gradient(circle at 44% 72%, rgba(114, 67, 28, 0.15) 0 4px, transparent 4px 12px),
    radial-gradient(circle at 79% 68%, rgba(126, 73, 31, 0.12) 0 3px, transparent 3px 10px),
    linear-gradient(180deg, rgba(255, 217, 160, 0.2) 0%, rgba(255, 217, 160, 0) 42%);
  opacity: 0.9;
}

.plot-item.empty .plot-title,
.plot-item.empty .plot-progress {
  opacity: 0.78;
}

.plot-item.empty .plot-title {
  display: none;
}

.plot-item.empty .plot-art,
.plot-item.empty .plot-progress {
  display: none;
}

.plot-item.growing .plot-art {
  animation: plantSway 2.6s ease-in-out infinite;
}

.plot-item.empty .plot-art {
  animation: soilBreath 2.4s ease-in-out infinite;
}

.farm-tip {
  margin-bottom: 0;
}

.farm-field-card {
  background:
    radial-gradient(ellipse at 18% 20%, rgba(220, 255, 110, 0.36) 0%, transparent 44%),
    radial-gradient(ellipse at 82% 78%, rgba(65, 175, 48, 0.26) 0%, transparent 42%),
    radial-gradient(ellipse at 52% 52%, rgba(140, 210, 60, 0.18) 0%, transparent 55%),
    linear-gradient(148deg, #a8df52 0%, #8bc34a 27%, #7ab340 55%, #5c9c2c 100%);
  border: 2px solid rgba(100, 180, 50, 0.5);
  box-shadow: 0 24px 56px rgba(45, 120, 15, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  position: relative;
  overflow: visible;
}

.farm-field-card .section-heading h2 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.farm-field-card .section-heading::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
}

.farm-field-card .badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  text-shadow: none;
}

.farm-field-card .farm-tip {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.field-hint-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.field-hint-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.44);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
}

.plot-quiz-pop {
  position: absolute;
  z-index: 8;
  min-width: 220px;
  max-width: 260px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 248, 233, 0.6) 100%);
  border: 1px solid rgba(200, 230, 201, 0.6);
  box-shadow: 0 16px 30px rgba(67, 160, 71, 0.18);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.plot-quiz-pop[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.plot-quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.plot-quiz-audio-btn {
  border-radius: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(67, 160, 71, 0.25);
  background: #e0f2f1;
  color: #1b5e20;
  font-size: 12px;
  font-weight: 700;
}

.plot-quiz-audio-btn:hover {
  background: #c8e6c9;
}

.plot-quiz-question {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
}

.plot-quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quiz-option {
  border: 1px solid rgba(200, 230, 201, 0.6);
  background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
  transition: all 0.2s ease;
}

.quiz-option:hover {
  border-color: rgba(67, 160, 71, 0.5);
  background: linear-gradient(135deg, #e0f2f1 0%, #c8e6c9 100%);
  transform: translateY(-1px);
}

.word-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 14px);
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.94) 0%, rgba(56, 142, 60, 0.9) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.24s ease;
  z-index: 30;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.word-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes plantSway {
  0%,
  100% {
    transform: rotate(-2deg) scale(1);
  }
  50% {
    transform: rotate(2deg) scale(1.02);
  }
}

@keyframes harvestBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes soilBreath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes cloudFloat {
  0%,
  100% {
    transform: translateX(0px);
  }
  50% {
    transform: translateX(-16px);
  }
}

@keyframes sunPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes sunSweep {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes windmillSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes sparkleDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(-10px, 8px, 0);
    opacity: 1;
  }
}

@keyframes mistFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.86;
  }
  50% {
    transform: translateX(-47%) translateY(-6px);
    opacity: 1;
  }
}

@keyframes auroraDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-10px, 8px, 0) scale(1.07);
  }
}

@keyframes leafPulse {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.07) rotate(6deg);
    opacity: 1;
  }
}

@keyframes sheenSweep {
  0%,
  20% {
    transform: translateX(-115%);
  }
  60% {
    transform: translateX(125%);
  }
  100% {
    transform: translateX(125%);
  }
}

@keyframes titleFlow {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 250% center;
  }
}

@keyframes floatStat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes leafFall {
  0% {
    transform: translateY(-10px) rotate(0deg) translateX(0);
    opacity: 0.9;
  }
  20% {
    transform: translateY(22vh) rotate(40deg) translateX(22px);
  }
  40% {
    transform: translateY(44vh) rotate(-15deg) translateX(-18px);
  }
  60% {
    transform: translateY(66vh) rotate(55deg) translateX(32px);
  }
  80% {
    transform: translateY(88vh) rotate(-30deg) translateX(-12px);
    opacity: 0.5;
  }
  100% {
    transform: translateY(115vh) rotate(80deg) translateX(10px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) {
  .layout,
  .hero,
  .cute-hero,
  .farm-game-hero,
  .overview-grid,
  .essay-panel,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .farm-game-layout {
    grid-template-columns: 1fr;
  }

  .farm-stage {
    min-height: 580px;
  }

  .farm-game-stats-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 16px;
  }

  .legal-page {
    padding: 16px;
  }

  .word-grid {
    grid-template-columns: 1fr;
  }

  .plot-quiz-options {
    grid-template-columns: 1fr;
  }

  .farm-stage {
    min-height: 470px;
    border-radius: 22px;
  }

  .farm-stage-house {
    transform: scale(0.78);
    transform-origin: left top;
  }

  .farm-stage-windmill {
    transform: scale(0.75);
    transform-origin: center top;
  }

  .farm-stage-bush-left,
  .farm-stage-bush-right,
  .farm-stage-rocks {
    transform: scale(0.82);
    transform-origin: center;
  }

  .plot-grid {
    bottom: 30px;
    transform: translateX(-50%) scale(0.84);
    transform-origin: center bottom;
  }

  .plot-quiz-pop {
    min-width: 200px;
    max-width: 220px;
  }

  .farm-game-stats-inline {
    grid-template-columns: 1fr;
  }

  .farm-game-hero {
    margin-bottom: 4px;
  }

  .farm-game-layout {
    margin-top: 10px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
