.eco-game {
  display: grid;
  gap: 12px;
  max-width: 60rem;
  margin-inline: auto;
}

.eco-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
}

.eco-round,
.eco-stone-count {
  margin: 0;
  color: #ccf5f4;
  font-size: .92rem;
  font-weight: 750;
}

.eco-round { color: #e1ceff; }

.eco-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(166px, 30vw, 285px);
  border: 1px solid #4b548c;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 49% 100%, #14566c 0, transparent 65%),
    radial-gradient(ellipse at 65% 0, #443168 0, transparent 58%),
    #101b3d;
}

.eco-scene::before,
.eco-scene::after {
  position: absolute;
  z-index: -1;
  content: '';
}

.eco-scene::before {
  inset: auto 0 0;
  height: 43%;
  clip-path: polygon(0 5%, 11% 10%, 15% 25%, 23% 77%, 77% 77%, 85% 25%, 89% 10%, 100% 5%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #338895, #12344e 45%);
}

.eco-scene::after {
  inset: auto 0 0;
  height: 19%;
  background: repeating-linear-gradient(0deg, #5cebe032 0 1px, transparent 1px 9px);
}

.eco-stars {
  position: absolute;
  inset: 0 0 37%;
  background:
    radial-gradient(circle 2px at 17% 47%, #8de9eb 99%, transparent),
    radial-gradient(circle 1px at 25% 23%, #f1dbff 99%, transparent),
    radial-gradient(circle 2px at 39% 27%, #f1dbff 99%, transparent),
    radial-gradient(circle 2px at 73% 35%, #8de9eb 99%, transparent),
    radial-gradient(circle 1px at 87% 55%, #f1dbff 99%, transparent),
    radial-gradient(circle at 55% 7%, #d3b1ff48, transparent 42%);
}

.eco-bridge {
  position: absolute;
  inset: auto 7% 24%;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: clamp(3px, 1.25vw, 13px);
}

.eco-stone {
  --eco-rise: 0px;
  display: grid;
  place-items: center;
  min-height: clamp(28px, 5.5vw, 55px);
  transform: translateY(var(--eco-rise));
  border: 1px dashed #8196bb;
  border-radius: 10px 10px 8px 8px;
  background: #101d38d9;
  color: transparent;
  font-size: clamp(.9rem, 3vw, 1.7rem);
  line-height: 1;
}

.eco-stone:nth-child(2),
.eco-stone:nth-child(6) { --eco-rise: clamp(-17px, -2vw, -9px); }
.eco-stone:nth-child(3),
.eco-stone:nth-child(5) { --eco-rise: clamp(-32px, -4vw, -17px); }
.eco-stone:nth-child(4) { --eco-rise: clamp(-42px, -5vw, -23px); }

.eco-stone.eco-next {
  border: 2px solid #c1caff;
  background: #45416d;
}

.eco-stone.eco-built {
  border: 1px solid #d2fff6;
  background: linear-gradient(170deg, #aefff0, #53d5d6 72%, #3392ad);
  color: #11374d;
  box-shadow: 0 3px 0 #19708d, 0 0 17px #62eeeb5e;
}

.eco-stone.eco-built:nth-child(even) {
  border-color: #f1ddff;
  background: linear-gradient(170deg, #e9d6ff, #bf9cfb 72%, #8e78d4);
  color: #311653;
  box-shadow: 0 3px 0 #7755a8, 0 0 17px #d0a2ff66;
}

.eco-crossed .eco-stars { animation: eco-shine .7s ease-in-out 2 alternate; }

@keyframes eco-shine {
  to { opacity: .25; }
}

.eco-message {
  min-height: 2.6em;
  margin: 0;
  color: #f5f5ff;
  font-weight: 650;
}

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

.eco-actions button { min-height: 44px; }

@media (prefers-reduced-motion: reduce) {
  .eco-crossed .eco-stars { animation: none; }
}
