.cpu-line {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #e7c36a;
}

.rail {
  width: min(560px, 100%);
  padding: 10px 8px;
  border-radius: 22px;
  background: linear-gradient(165deg, #6a4630, #24160f);
  box-shadow: 0 0 0 2px #f0d48a, 0 0 0 5px #6d4318, 0 16px 28px rgba(0, 0, 0, .35);
}

.ends {
  margin: 0;
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  font-size: 18px;
  color: #ffe08a;
}

.chain {
  display: flex;
  gap: 3px;
  align-items: center;
  overflow-x: auto;
  padding: 8px 4px 12px;
  min-height: 92px;
}

.hand {
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 4px 0 8px;
}

.tile {
  appearance: none;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 2;
  padding: 4px;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #fffaf3, #f0e2d0);
  box-shadow: 0 5px 0 #c8b49a, 0 8px 12px rgba(0, 0, 0, .25);
  position: relative;
  color: #1c140f;
  cursor: pointer;
}

.chain .tile { cursor: default; width: 40px; height: 80px; aspect-ratio: auto; }
.chain .tile.flat { width: 80px; height: 40px; flex-direction: row; }
.tile.ready { box-shadow: 0 5px 0 #c8b49a, 0 0 0 3px #ffe08a; }
.tile.on { transform: translateY(-8px); }
.chain .tile.cap { outline: 3px solid #ffe08a; outline-offset: 1px; }

.tile::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 2px;
  background: rgba(28, 20, 15, .28);
}

.tile.flat::after {
  left: 50%;
  right: auto;
  top: 6px;
  bottom: 6px;
  width: 2px;
  height: auto;
}

.half {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  min-width: 0;
  min-height: 0;
}

.pip {
  width: 62%;
  height: 62%;
  margin: auto;
  border-radius: 50%;
  background: #1c140f;
}

.sides { display: flex; gap: 8px; min-height: 44px; justify-content: center; }
#play-left, #play-right {
  min-width: 132px;
  background: #f0a31a;
  color: #3d2408;
  border-color: transparent;
  font-size: 16px;
}
