.game-body {
  background: #f4f5ed;
}
.game-header {
  padding: 20px 35px;
  border-bottom: 1px solid var(--line);
  background: #eef1e6;
  margin: 0;
}
.game-header a:last-child {
  font-size: 13px;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  max-width: 1450px;
  margin: 28px auto;
  padding: 0 30px;
}
.game-main {
  padding: 0;
  margin: 0;
  max-width: none;
}
.score {
  background: #e8eddb;
  border-radius: 10px;
  padding: 13px;
  font-size: 12px;
  white-space: nowrap;
}
.score strong {
  font-size: 20px;
  margin: 0 5px;
}
.scene {
  height: 480px;
  background: #cfdfc3;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #c7d8b9;
  outline: none;
}
.scene:focus-visible {
  outline: 3px solid #acba68;
}
.sun {
  position: absolute;
  width: 65px;
  height: 65px;
  background: #f6dda1;
  border-radius: 50%;
  right: 45px;
  top: 35px;
}
.cloud {
  position: absolute;
  background: #f0f2dc;
  border-radius: 60px;
  height: 20px;
  width: 95px;
  opacity: 0.7;
}
.cloud-one {
  top: 70px;
  left: 12%;
}
.cloud-two {
  top: 120px;
  right: 12%;
  width: 135px;
}
.hill {
  position: absolute;
  border-radius: 50% 50% 0 0;
  background: #b1caa0;
  width: 130%;
  height: 330px;
  left: -20%;
  top: 190px;
}
.hill-two {
  left: 40%;
  background: #9fbb8b;
  top: 200px;
}
.trail {
  position: absolute;
  height: 120%;
  width: 155px;
  background: #ead9b4;
  left: 50%;
  top: 140px;
  transform: rotate(-20deg);
  border-radius: 40%;
}
.tree {
  position: absolute;
  font-size: 150px;
  color: #5c8a57;
  line-height: 1;
  text-shadow: 0 7px #678c54;
}
.tree-one {
  left: 5%;
  top: 250px;
}
.tree-two {
  right: 1%;
  top: 295px;
}
.sponsor {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 72%);
  aspect-ratio: 480/180;
  z-index: 3;
  background: #eef3d6;
  box-shadow:
    0 10px 0 #7b895866,
    0 18px 22px #42542d20;
  border-radius: 6px;
}
.sponsor:before,
.sponsor:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 60px;
  top: 100%;
  left: 20%;
  background: #87976d;
  z-index: -1;
}
.sponsor:after {
  left: 80%;
}
.sponsor img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  border-radius: 5px;
}
.sponsor-label {
  position: absolute;
  font-size: 8px;
  letter-spacing: 1.5px;
  top: -20px;
  left: 0;
  color: #657854;
  font-weight: 700;
}
#cover {
  position: absolute;
  inset: 0 25% 0 0;
  background: #62815b;
  color: #e4efd7;
  text-align: center;
  align-content: center;
  font-size: 14px;
  border-radius: 5px;
}
#cover[hidden] {
  display: none;
}
.fallback {
  position: absolute;
  inset: 0;
  padding: 25px;
  background: #e4eccf;
  text-align: center;
  align-content: center;
}
.fallback strong,
.fallback span {
  display: block;
  font-size: 14px;
}
.fallback span {
  font-size: 10px;
  margin-top: 12px;
  color: #657b55;
}
.player {
  position: absolute;
  width: 40px;
  height: 40px;
  background: #ecf5d5;
  border: 3px solid #254a32;
  border-radius: 50%;
  color: #44773d;
  font-size: 28px;
  line-height: 33px;
  text-align: center;
  z-index: 4;
  box-shadow: 0 6px 0 #38533033;
  pointer-events: none;
}
.seed {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 4px solid #f6e8a5;
  background: #c8a754;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #9b8d48;
  z-index: 2;
}
.seed.collected {
  display: none;
}
.scene-note {
  position: absolute;
  bottom: 15px;
  left: 20px;
  color: #4a6540;
  font-size: 11px;
  background: #e7e9ccbb;
  padding: 7px 10px;
  border-radius: 6px;
}
#win {
  position: absolute;
  bottom: 90px;
  left: 20%;
  right: 20%;
  background: #193d33ed;
  color: white;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  font-size: 18px;
  z-index: 5;
}
#win button {
  margin-top: 12px;
  background: var(--lime);
  color: var(--ink);
}
.game-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 15px 0 23px;
}
.game-controls button {
  font-size: 20px;
  padding: 10px 18px;
}
.game-controls span {
  margin-left: 10px;
}
.diagnostics .card {
  padding: 21px;
}
.diagnostics p {
  font-size: 12px;
}
.mode-label {
  margin-top: 17px;
}
.wide {
  width: 100%;
  font-size: 12px;
}
.diagnostics .actions button {
  font-size: 11px;
  flex: 1;
  padding: 10px 8px;
}
.meter {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  margin: 16px 0;
}
.meter strong {
  font-size: 13px;
}
.game-receipt p {
  font-size: 13px;
}
.receipt-money {
  display: flex;
  gap: 25px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.receipt-money span {
  font-size: 11px;
  color: var(--muted);
}
.receipt-money strong {
  display: block;
  font-size: 20px;
  color: var(--ink);
  margin-top: 6px;
}
@media (min-width: 1200px) {
  .scene {
    height: 540px;
  }
}
@media (max-width: 900px) {
  .game-layout {
    grid-template-columns: 1fr;
    max-width: 800px;
  }
  .diagnostics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .diagnostics .card:last-child {
    grid-column: 1/-1;
  }
  .game-header .pill {
    display: none;
  }
}
@media (max-width: 600px) {
  .game-layout {
    padding: 0 14px;
    margin-top: 20px;
  }
  .game-header {
    padding: 18px;
  }
  .scene {
    height: 390px;
  }
  .sponsor {
    top: 75px;
    width: 82%;
  }
  .diagnostics {
    display: block;
  }
  .scene-note {
    font-size: 9px;
    left: 10px;
  }
  .game-controls span {
    display: none;
  }
  .game-main .row-head {
    flex-wrap: nowrap;
  }
  .score {
    padding: 8px;
  }
  .game-main h1 {
    font-size: 25px;
  }
}
@media(max-width:800px){.diagnostics button{min-height:44px}.diagnostics #start{margin-top:12px}.game-controls{gap:12px}.game-controls button{min-width:48px;min-height:48px}.diagnostics select{font-size:16px;min-height:44px}.diagnostics pre,.receipt pre{white-space:pre-wrap;overflow-wrap:anywhere}}
