.felt:has(.plinko-board) {
  background: radial-gradient(ellipse at 50% 2%, #294237, #162d28 65%, #132720);
}
.felt:has(.plinko-board) .inner-felt:after { display: none; }
#table:has(.plinko-board) { padding: 16px 10px; }
.plinko-board {
  width: min(100%, 740px);
  position: relative;
  container-type: inline-size;
}
.plinko-plane {
  position: relative;
  width: 100%;
  aspect-ratio: var(--pl-width) / var(--pl-height);
  isolation: isolate;
  font-size: clamp(5px, 1cqw, 8px);
}
.pl-pin, .pl-ball, .pl-feed, .pl-pocket {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.pl-pin {
  width: calc(var(--pl-pitch) * .16);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 24%, #fffdef 2%, #ebebd7 35%, #c0cdb8 69%, #8caa9a);
  box-shadow: 0 .2em .24em #061e19b0;
}
.pl-ball {
  z-index: 3;
  width: calc(var(--pl-pitch) * .288);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 23%, #f3ffc1 2%, #c5ff73 24%, #90e445 56%, #498f31 95%);
  box-shadow: 0 0 .7em #a5f350b8, 0 .23em .3em #102b1c;
}
.pl-feed {
  left: 50%;
  top: 1.5%;
  width: 5.2%;
  height: 2%;
  border: 1px solid #b8d79662;
  border-radius: 50%;
  background: #0c211e;
}
.pl-feed i {
  display: block;
  width: 24%;
  height: 27%;
  margin: 7% auto;
  border-radius: 50%;
  background: #a7c78990;
}
.pl-pocket {
  top: 92%;
  width: calc(var(--pl-pitch) * .94);
  height: 6.5%;
  display: grid;
  place-items: center;
  color: #241d14;
  border-radius: clamp(2px, .65cqw, 5px);
  background: linear-gradient(175deg, var(--pl-top), var(--pl-base));
  box-shadow: inset 0 1px 0 #fff2cf70, 0 .38em 0 var(--pl-edge), 0 .48em .45em #081d1a6b;
}
.pl-pocket b {
  font: 800 clamp(8px, 1.9cqw, 14px)/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.075em;
}
.pl-short-label {display: none;}
.plinko-board[data-rows="16"] .pl-pocket b {font-size: clamp(7px, 1.55cqw, 12px);}
@container (max-width: 470px) {
  .pl-full-label {display: none;}
  .pl-short-label {display: inline;}
}
.pl-heat-0,.pl-heat-1 { --pl-top: #edc879; --pl-base: #dcab55; --pl-edge: #92723d; }
.pl-heat-2 { --pl-top: #f0bb6b; --pl-base: #dfa254; --pl-edge: #9b6b37; }
.pl-heat-3 { --pl-top: #edab65; --pl-base: #e3924e; --pl-edge: #a36537; }
.pl-heat-4 { --pl-top: #f19a64; --pl-base: #dc7d4b; --pl-edge: #985435; }
.pl-heat-5 { --pl-top: #eb8966; --pl-base: #de7156; --pl-edge: #974c39; }
.pl-heat-6 { --pl-top: #ec8070; --pl-base: #df655b; --pl-edge: #943e38; }
@media(max-width: 640px) {
  #table:has(.plinko-board) { min-height: 250px; padding: 18px 6px; }
  .felt:has(.plinko-board) { min-height: 250px; }
}
