:root {
  color-scheme: light;
  --ink: #263348;
  --muted: #657089;
  --line: rgba(38, 51, 72, 0.16);
  --leaf: #8ddf9b;
  --mint: #e9fff1;
  --cream: #fff6d8;
  --orange: #ffb45c;
  --rose: #ff8fa3;
  --blue: #92d7ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, #fff8a8 0 8%, transparent 9%),
    linear-gradient(145deg, #d9f7ff 0%, var(--mint) 48%, #fff0d9 100%);
}

button,
select {
  font: inherit;
}

.app {
  width: min(1120px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: center;
  min-height: 230px;
}

.eyebrow {
  margin: 0 0 8px;
  font-weight: 900;
  color: #37804d;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 7vw, 70px);
  line-height: 1;
  letter-spacing: 0;
}

.intro,
.story p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 18px;
}

.picnic {
  position: relative;
  min-height: 220px;
  border-radius: 8px;
}

.picnic::before {
  content: "";
  position: absolute;
  inset: 70px 20px 12px;
  border-radius: 50% 50% 8px 8px;
  background: #9ae69d;
  box-shadow: inset 0 -16px 0 rgba(33, 126, 60, 0.12);
}

.sun {
  position: absolute;
  right: 26px;
  top: 12px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #ffe56a;
  box-shadow: 0 0 0 12px rgba(255, 229, 106, 0.28);
}

.basket,
.friend {
  position: absolute;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fffdf2;
  font-size: 44px;
  box-shadow: 0 7px 0 var(--ink);
}

.basket {
  left: 96px;
  top: 52px;
}

.rabbit {
  left: 22px;
  bottom: 12px;
}

.bear {
  left: 105px;
  bottom: 0;
}

.fox {
  right: 20px;
  bottom: 18px;
}

.controls,
.scoreboard,
.game {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(38, 51, 72, 0.12);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin-bottom: 14px;
}

.controls label {
  font-weight: 900;
}

select {
  min-height: 44px;
  flex: 1 1 250px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
}

button {
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--ink);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.scoreboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

.scoreboard div {
  min-height: 72px;
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 10px;
  border-radius: 8px;
  background: var(--cream);
}

.scoreboard span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.scoreboard strong {
  font-size: 28px;
}

.game {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px;
}

.story,
.feedback,
.actions {
  grid-column: 1 / -1;
}

h2,
h3 {
  margin: 0 0 10px;
}

.clue-box,
.queue-wrap,
.animal-bank {
  border: 2px dashed rgba(38, 51, 72, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.animal-bank {
  grid-column: 1 / -1;
}

#clues {
  margin: 0;
  padding-left: 22px;
  line-height: 1.8;
}

.slots,
.animals {
  display: grid;
  gap: 10px;
}

.slots {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.animals {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.slot,
.animal-card {
  min-height: 86px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
}

.slot {
  gap: 4px;
  padding: 8px;
  border-style: dashed;
  cursor: pointer;
}

.slot .pos {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.animal-card {
  padding: 10px;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--ink);
}

.animal-card.selected {
  outline: 5px solid var(--blue);
  transform: translateY(-2px);
}

.animal-card.used {
  opacity: 0.35;
}

.emoji {
  display: block;
  font-size: 36px;
}

.name {
  display: block;
  font-weight: 900;
}

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

.feedback {
  min-height: 54px;
  border-radius: 8px;
  padding: 14px;
  font-weight: 900;
}

.feedback.neutral {
  background: #edf7ff;
}

.feedback.good {
  background: #dff8d8;
}

.feedback.bad {
  background: #ffe0e7;
}

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

  .picnic {
    min-height: 190px;
  }

  button,
  select {
    width: 100%;
  }
}
