.pg-content {
  font-family: inherit;
  overflow: visible;
  color: #3f4a30;
}
.is-celebrating .pg-bridge-pieces,
.is-celebrating .pg-response {
  filter: drop-shadow(0 0 1cqw #ffdc7c);
}
.pg-content button {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pg-content button:focus-visible {
  outline: 0.32cqw solid #fff;
  box-shadow: 0 0 0 0.55cqw #327b87;
  z-index: 9;
}
.pg-content button:disabled {
  cursor: default;
  opacity: 0.65;
}
.pg-prompt {
  position: absolute;
  top: 0;
  left: 15%;
  right: 6%;
  text-align: center;
  background: #fff8dfed;
  border: 0.16cqw solid #fff8de;
  border-radius: 2cqw;
  box-shadow: 0 0.4cqw 1cqw #5a51272c;
  padding: 0.8cqw 1.5cqw;
}
.pg-prompt > span {
  font-size: 1cqw;
  color: #8a754e;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.pg-prompt h2 {
  font-size: 1.7cqw;
  margin: 0.2cqw 0;
  font-weight: 800;
}
.pg-bridge-scene {
  position: absolute;
  left: 20%;
  right: 2%;
  top: 20%;
  height: 53%;
  isolation: isolate;
}
.pg-river {
  position: absolute;
  left: 20%;
  top: 8%;
  width: 58%;
  height: 90%;
  background: linear-gradient(170deg, #72dcda, #3cb8c4 50%, #5ed4c4);
  box-shadow: inset 0 1cqw 2cqw #227b8d30;
  border-radius: 45% 45% 30% 30% / 10% 13% 12% 12%;
  z-index: 1;
}
.pg-water-line {
  position: absolute;
  left: 15%;
  top: 12%;
  width: 30%;
  height: 1cqw;
  border-top: 0.25cqw solid #e3fbdfaa;
  border-radius: 50%;
  transform: rotate(-3deg);
}
.pg-water-line + div.pg-water-line {
  top: 85%;
  left: 55%;
  width: 25%;
}
.pg-bank {
  position: absolute;
  width: 22%;
  height: 40%;
  top: 35%;
  border-radius: 35%;
  background: linear-gradient(#d5cc8e 10%, #b6ae6e 55%, #8d8953);
  box-shadow:
    0 0.8cqw 0 #6b7444,
    0 1.2cqw 1.5cqw #52634950;
  z-index: 0;
}
.pg-bank-left {
  left: 1%;
}
.pg-bank-right {
  left: 77%;
}
.pg-bank-right span {
  position: absolute;
  right: 10%;
  bottom: 120%;
  font-size: 1.25cqw;
  padding: 0.5cqw 0.9cqw;
  color: #fff6cf;
  background: #977244;
  border: 0.2cqw solid #e8c785;
  border-radius: 0.4cqw;
  transform: rotate(4deg);
}
.pg-slots {
  display: flex;
  position: absolute;
  top: 36%;
  width: 100%;
  height: 39%;
  border: 0.15cqw dashed #f3f7cdbc;
  box-sizing: border-box;
  background: #d2f5d645;
}
.pg-slots span {
  flex: 1;
  border-right: 0.15cqw dashed #f3f7cd99;
  text-align: center;
  padding-top: 5cqw;
  font-size: 1.15cqw;
  font-weight: 900;
  color: #277e7d;
}
.pg-bridge-pieces {
  position: absolute;
  top: 36%;
  width: 100%;
  height: 39%;
  z-index: 3;
}
.pg-plank,
.pg-supply {
  background: linear-gradient(177deg, #f8d992, #d29b54 55%, #c38b48);
  border: 0.2cqw solid #916339;
  box-shadow:
    inset 0 0.3cqw #ffe6aa,
    0 0.5cqw #8c603d,
    0 0.7cqw 0.4cqw #3e534955;
  border-radius: 0.5cqw;
  color: #604929;
}
.pg-plank {
  position: absolute;
  height: 100%;
  padding: 0;
  transform: perspective(500px) rotateX(12deg);
  border-left: 0.22cqw solid #7b512d;
}
.pg-length-2 {
  background: linear-gradient(177deg, #c3dda1, #87ae70 55%, #709359);
}
.pg-length-3 {
  background: linear-gradient(177deg, #badbda, #7eafb4 55%, #608f9c);
}
.pg-excess {
  border-color: #c1583e;
  background: repeating-linear-gradient(
    135deg,
    #e8996e 0,
    #e8996e 1cqw,
    #d67d61 1cqw,
    #d67d61 2cqw
  );
}
.pg-nails {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: space-around;
}
.pg-nails i {
  width: 0.9cqw;
  height: 0.9cqw;
  border-radius: 50%;
  background: #ffefb9;
  box-shadow:
    inset 0 -0.15cqw #b78d55,
    0 0.12cqw 0.1cqw #73593680;
}
.pg-plank .pg-nails i {
  position: relative;
}
.pg-plank .pg-nails i:before {
  content: "";
  position: absolute;
  width: 0.8cqw;
  height: 0.13cqw;
  background: #987340;
  top: 42%;
  left: 8%;
  transform: rotate(-30deg);
}
.pg-car {
  position: absolute;
  left: 10%;
  top: 26%;
  width: 10%;
  z-index: 4;
  filter: drop-shadow(0 0.5cqw 0.2cqw #27493655);
}
.pg-car svg {
  display: block;
  width: 100%;
}
.pg-companion {
  position: absolute;
  width: 12%;
  right: -2%;
  bottom: 5%;
  z-index: 4;
  filter: drop-shadow(0 0.6cqw 0.2cqw #34412844);
}
.pg-companion svg {
  width: 100%;
  height: auto;
}
.pg-bridge-sign {
  position: absolute;
  left: 38%;
  top: -7%;
  background: #fff8ddd9;
  border-radius: 3cqw;
  padding: 0.3cqw 1.5cqw;
  font-size: 1.3cqw;
  z-index: 3;
}
.pg-bridge-sign b {
  font-size: 1.6cqw;
  color: #347c73;
}
.pg-workbench {
  position: absolute;
  left: 15%;
  right: 3%;
  bottom: 5%;
  height: 20%;
  display: flex;
  align-items: center;
  gap: 2cqw;
  padding: 0.8cqw 1.4cqw;
  background: linear-gradient(#e0bb7de8, #b38753f5);
  border: 0.2cqw solid #fce5ae;
  border-radius: 2cqw 0.8cqw 1.4cqw 1.4cqw;
  box-shadow:
    0 0.6cqw 0 #795c3b,
    0 1cqw 1.5cqw #4b452b4d;
  box-sizing: border-box;
}
.pg-tools {
  display: flex;
  gap: 1cqw;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.pg-tool {
  position: relative;
  border-radius: 0.7cqw;
  min-height: 4cqw;
  padding: 0.4cqw 0.65cqw;
  transition: transform 0.15s;
}
.pg-tool:hover {
  transform: translateY(-0.3cqw);
}
.pg-supply {
  width: 5cqw;
  height: 4.3cqw;
}
.pg-supply.pg-length-2 {
  width: 8cqw;
}
.pg-supply.pg-length-3 {
  width: 11cqw;
}
.pg-supply .pg-nails {
  height: 65%;
}
.pg-tool strong {
  font-size: 1.1cqw;
  white-space: nowrap;
}
.pg-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5cqw;
  width: 40%;
  max-width: 30cqw;
}
.pg-controls button {
  background: #fff4d6;
  border: 0.16cqw solid #c39758;
  border-radius: 1cqw;
  padding: 0.55cqw 0.75cqw;
  color: #4e5d3b;
  font-size: 1.05cqw;
  box-shadow: 0 0.2cqw #9c7745;
}
.pg-controls .pg-primary {
  font-size: 1.45cqw;
  font-weight: 850;
  background: linear-gradient(#648d52, #467642);
  border-color: #315b37;
  color: #fff7d8;
  padding: 0.8cqw 1.3cqw;
}
.pg-summary {
  position: absolute;
  bottom: -2%;
  left: 15%;
  right: 3%;
  text-align: center;
  font-size: 1.05cqw;
  font-weight: 750;
  text-shadow: 0 0.12cqw #fff7d4;
  color: #3a623d;
}
.pg-music-scene {
  position: absolute;
  left: 15%;
  right: 3%;
  top: 18%;
  height: 54%;
  overflow: visible;
}
.pg-station-sign {
  position: absolute;
  right: 2%;
  top: 0;
  background: #527857;
  border: 0.25cqw solid #e9cd8e;
  color: #fff1bc;
  font-size: 1.15cqw;
  transform: rotate(3deg);
  padding: 0.55cqw 1cqw;
  border-radius: 0.8cqw;
  box-shadow: 0 0.35cqw #604e31;
}
.pg-station-sign small {
  display: block;
  font-size: 0.65cqw;
  letter-spacing: 0.1em;
}
.pg-reference,
.pg-response {
  position: absolute;
  left: 7%;
  right: 4%;
  height: 43%;
  top: 0;
}
.pg-response {
  top: 50%;
}
.pg-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0.6cqw;
  align-items: flex-end;
  justify-content: center;
  height: 90%;
  padding-bottom: 0.4cqw;
  isolation: isolate;
}
.pg-track:before {
  content: "";
  position: absolute;
  bottom: 0;
  height: 1cqw;
  left: -2%;
  right: -2%;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 1.3cqw,
    #8d6744 1.3cqw,
    #8d6744 1.65cqw
  );
  border-top: 0.19cqw solid #7d6d50;
  border-bottom: 0.19cqw solid #7d6d50;
  z-index: -1;
  transform: skewX(-18deg);
}
.pg-track-label {
  position: absolute;
  left: -8%;
  top: 10%;
  font-size: 1cqw;
  font-weight: 800;
  background: #fff3cded;
  max-width: 5cqw;
  padding: 0.4cqw;
  border-radius: 0.6cqw;
  z-index: 2;
}
.pg-wagon {
  position: relative;
  width: 6cqw;
  height: 5.8cqw;
  flex-shrink: 1;
  min-width: 0;
  border: 0.2cqw solid #9f783a;
  border-radius: 0.8cqw 0.8cqw 0.4cqw 0.4cqw;
  background: linear-gradient(#fff0b2, #efbd5b);
  box-shadow:
    inset 0 -0.7cqw #cb984f,
    0 0.3cqw #805c3d;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 0.5cqw;
  transition:
    transform 0.15s,
    filter 0.15s;
}
.pg-wagon span {
  display: block;
  width: 3.8cqw;
  height: 3.8cqw;
}
.pg-wagon svg {
  width: 100%;
  height: 100%;
}
.pg-wagon b {
  font-size: 1cqw;
}
.pg-wagon > i {
  position: absolute;
  bottom: -0.65cqw;
  left: 12%;
  width: 1.2cqw;
  height: 1.2cqw;
  background: #5d5948;
  border: 0.2cqw solid #dbc99c;
  border-radius: 50%;
  box-sizing: border-box;
}
.pg-wagon > i + i {
  left: auto;
  right: 12%;
}
.pg-note-B {
  background: linear-gradient(#d3f1c6, #8aba86);
  border-color: #628761;
}
.pg-note-C {
  background: linear-gradient(#d2e8eb, #89b5cb);
  border-color: #698e9e;
}
.pg-selected {
  outline: 0.3cqw solid #d35b40;
  outline-offset: 0.2cqw;
  transform: translateY(-0.4cqw);
}
.pg-lit {
  filter: brightness(1.18);
  transform: translateY(-0.75cqw);
  box-shadow: 0 0 1.5cqw #fff59b;
}
.pg-engine {
  width: 7cqw;
  height: 6.5cqw;
  flex-shrink: 0;
}
.pg-engine svg {
  width: 100%;
  height: 100%;
}
.pg-empty-wagon {
  border: 0.2cqw dashed #9b844d;
  background: #fff1ba99;
  border-radius: 0.8cqw;
  width: 6cqw;
  height: 4.5cqw;
  font-size: 2.4cqw;
  color: #95794b;
  text-align: center;
  line-height: 4.5cqw;
  margin-bottom: 0.7cqw;
}
.pg-bird {
  position: absolute;
  right: -4%;
  top: 35%;
  width: 7cqw;
}
.pg-bird svg {
  width: 100%;
  height: auto;
}
.pg-sound {
  display: flex;
  align-items: center;
  gap: 0.3cqw;
  border: 0.2cqw solid #9f783a;
  box-shadow: 0 0.35cqw #8f6f45;
  color: #49553c;
  padding: 0.3cqw 0.9cqw;
}
.pg-sound svg {
  width: 3.2cqw;
  height: 3.2cqw;
}
.pg-sound strong {
  font-size: 1.35cqw;
}
@media (max-width: 640px) {
  .pg-controls button {
    font-size: 1.3cqw;
    padding: 0.5cqw;
  }
  .pg-controls .pg-primary {
    font-size: 1.6cqw;
  }
  .pg-prompt h2 {
    font-size: 1.9cqw;
  }
  .pg-summary {
    font-size: 1.3cqw;
  }
  .pg-workbench {
    left: 11%;
    right: 1%;
    height: 22%;
    bottom: 3%;
  }
  .pg-controls {
    width: 44%;
  }
  .pg-tool strong {
    font-size: 1.4cqw;
  }
  .pg-track-label {
    font-size: 1.2cqw;
  }
  .pg-wagon b {
    font-size: 1.3cqw;
  }
  .pg-summary {
    bottom: -3%;
  }
}
@media (max-width: 568px) {
  .pg-prompt {
    left: 11%;
    right: 1%;
  }
  .pg-controls button {
    font-size: 1.4cqw;
  }
  .pg-music-scene {
    left: 12%;
    right: 1%;
  }
  .pg-workbench {
    gap: 1cqw;
  }
  .pg-prompt > span {
    font-size: 1.25cqw;
  }
  .pg-station-sign {
    right: 0;
    top: -6%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pg-tool,
  .pg-wagon {
    transition: none;
  }
}

.pg-river:after {
  content: "";
  position: absolute;
  left: 8%;
  right: 6%;
  bottom: 7%;
  height: 10%;
  background: repeating-linear-gradient(
    175deg,
    transparent 0,
    transparent 0.6cqw,
    #c9f7dc65 0.65cqw,
    #c9f7dc65 0.8cqw,
    transparent 0.85cqw,
    transparent 1.4cqw
  );
  border-radius: 50%;
  pointer-events: none;
}
.pg-plank:after {
  content: "";
  position: absolute;
  inset: 14% 4%;
  border-top: 0.1cqw solid #ffffff35;
  border-bottom: 0.1cqw solid #664c3425;
  border-radius: 45%;
  pointer-events: none;
}
