.light-layout {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.light-panel,
.light-stage {
  padding: 18px;
}

.light-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.hint {
  margin: 0;
  color: #405363;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.55;
}

.light-stage {
  display: grid;
  place-items: center;
  min-height: 620px;
  background: linear-gradient(160deg, rgba(255, 224, 137, 0.9), rgba(255, 253, 245, 0.94));
}

.light-board {
  --size: 3;
  display: grid;
  grid-template-columns: repeat(var(--size), minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 620px);
}

.light-cell {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  border: 4px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(71, 85, 105, 0.13);
}

.bulb {
  position: relative;
  width: 54%;
  height: 54%;
  border-radius: 50% 50% 42% 42%;
  background: #8aa0ae;
  box-shadow: inset 0 -10px 0 rgba(38, 50, 56, 0.16);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bulb::after {
  position: absolute;
  left: 31%;
  bottom: -18%;
  width: 38%;
  height: 30%;
  border-radius: 8px;
  background: #607282;
  content: "";
}

.light-cell.is-on .bulb {
  background: #ffe089;
  box-shadow:
    0 0 0 10px rgba(255, 224, 137, 0.18),
    0 0 34px rgba(255, 224, 137, 0.9),
    inset 0 -10px 0 rgba(255, 177, 91, 0.22);
  transform: translateY(-2px);
}

@media (max-width: 820px) {
  .light-layout {
    grid-template-columns: 1fr;
  }

  .light-stage {
    min-height: auto;
  }

  .light-board {
    gap: 8px;
  }

  .light-cell {
    border-radius: 20px;
  }
}
