* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 28%),
    linear-gradient(180deg, #b9efff 0%, #f4fff8 54%, #ecf8d7 100%);
  color: #243028;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}

.app {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero {
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2d7f46;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.05;
}

.lead {
  margin: 12px 0 0;
  max-width: 36rem;
  font-size: 17px;
}

.hud {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card,
.panel {
  padding: 16px 18px;
  border: 2px solid rgba(36, 48, 40, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 30px rgba(43, 94, 59, 0.08);
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c7463;
}

.stat-card strong {
  font-size: 34px;
}

.play-area {
  margin-bottom: 18px;
}

.game {
  position: relative;
  overflow: hidden;
  height: 560px;
  border: 3px solid rgba(46, 90, 60, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 18%),
    linear-gradient(180deg, #9ee3ff 0%, #d8f7ff 44%, #f2f7ce 44%, #b9e084 100%);
  box-shadow: 0 20px 50px rgba(31, 86, 58, 0.12);
}

.sky-decor {
  position: absolute;
  inset: 16px auto auto 28px;
  width: 120px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow:
    50px 8px 0 10px rgba(255, 255, 255, 0.75),
    92px 0 0 2px rgba(255, 255, 255, 0.82),
    540px 32px 0 12px rgba(255, 255, 255, 0.75),
    600px 24px 0 0 rgba(255, 255, 255, 0.85);
}

.field-decor {
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background:
    radial-gradient(circle at 12% 50%, #9ad06e 0, #9ad06e 16px, transparent 17px),
    radial-gradient(circle at 88% 35%, #8ac45f 0, #8ac45f 14px, transparent 15px),
    linear-gradient(180deg, transparent 0%, transparent 30%, rgba(108, 74, 46, 0.18) 30%, rgba(108, 74, 46, 0.18) 33%, transparent 33%, transparent 63%, rgba(108, 74, 46, 0.18) 63%, rgba(108, 74, 46, 0.18) 66%, transparent 66%),
    linear-gradient(180deg, #cfe785 0%, #8dbb4f 100%);
}

.drop-zone {
  position: absolute;
  inset: 0 0 120px;
}

.crop {
  position: absolute;
  top: 0;
  width: 104px;
  padding: 14px 10px;
  border: 3px solid rgba(36, 48, 40, 0.1);
  border-radius: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 24px rgba(36, 48, 40, 0.12);
  transform: translate(-50%, 0);
}

.crop-emoji {
  display: block;
  margin-bottom: 4px;
  font-size: 34px;
}

.crop-name {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.basket-row {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
}

.baskets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.basket {
  padding: 16px 10px 18px;
  border: 3px solid transparent;
  border-radius: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.76);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.basket-season {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 800;
}

.basket-example {
  display: block;
  font-size: 14px;
  color: #4b5d50;
}

.basket.is-active {
  transform: translateY(-8px);
  border-color: #243028;
  box-shadow: 0 14px 22px rgba(36, 48, 40, 0.14);
}

.basket.spring {
  background: linear-gradient(180deg, #ffe3ef 0%, #ffd4b8 100%);
}

.basket.summer {
  background: linear-gradient(180deg, #d8f7ff 0%, #b8f0d3 100%);
}

.basket.autumn {
  background: linear-gradient(180deg, #ffe2b7 0%, #ffc786 100%);
}

.basket.winter {
  background: linear-gradient(180deg, #e5f0ff 0%, #d4dcff 100%);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.panel p {
  margin: 8px 0;
  line-height: 1.5;
}

.fact-text {
  min-height: 96px;
  font-size: 18px;
  font-weight: 700;
  color: #2d5b35;
}

.primary-button {
  margin-top: 12px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #2fbc64 0%, #219b4f 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(33, 155, 79, 0.24);
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 32, 27, 0.42);
}

.overlay.is-hidden {
  display: none;
}

.modal {
  width: min(420px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: #fffdf4;
  text-align: center;
  box-shadow: 0 30px 60px rgba(36, 48, 40, 0.18);
}

.result-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6c7c68;
}

.modal h2 {
  margin: 0 0 12px;
  font-size: 32px;
}

.result-score,
.result-summary {
  margin: 8px 0;
  font-size: 18px;
}

@media (max-width: 760px) {
  .hud,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .game {
    height: 620px;
  }

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

  .basket-row {
    bottom: 12px;
  }

  .drop-zone {
    inset: 0 0 200px;
  }

  .crop {
    width: 92px;
  }
}

.btn-home {
  display: block;
  text-align: center;
  margin: 16px auto;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2d7a3a;
  background: #e8f5e9;
  border: 2px solid #4caf50;
  border-radius: 999px;
  text-decoration: none;
  width: fit-content;
  transition: all 0.15s;
}
.btn-home:hover {
  background: #4caf50;
  color: #fff;
}
