@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Share+Tech+Mono&display=swap");
body {
  margin: 0;
}

.Pinball {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse 60% 80% at 50% -10%, rgba(139, 92, 255, 0.18), transparent 60%), radial-gradient(ellipse 50% 50% at 110% 110%, rgba(255, 47, 176, 0.12), transparent 60%), #07060f;
  color: #e8e6f5;
  font-family: "Share Tech Mono", monospace;
  user-select: none;
}
.Pinball * {
  box-sizing: border-box;
}
.Pinball-Cabinet {
  display: flex;
  align-items: stretch;
  gap: 22px;
  padding: 22px;
}
.Pinball-Stage {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(47, 243, 255, 0.25);
  border-radius: 14px;
  background: #100c22;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 30px 80px rgba(0, 0, 0, 0.7), inset 0 0 60px rgba(139, 92, 255, 0.06);
}
.Pinball-Canvas {
  display: block;
  width: 440px;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  touch-action: none;
}
.Pinball-Overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(circle at 50% 40%, rgba(16, 12, 34, 0.82), rgba(7, 6, 15, 0.96));
  backdrop-filter: blur(2px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.Pinball-Overlay[data-show] {
  opacity: 1;
  pointer-events: auto;
}
.Pinball-Title {
  font-family: "Orbitron", sans-serif;
  font-size: 46px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 6px;
  background: linear-gradient(180deg, #fff, #2ff3ff 55%, #8b5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(47, 243, 255, 0.35);
}
.Pinball-Title-Small {
  display: block;
  margin-top: 8px;
  color: #ff2fb0;
  font-size: 16px;
  letter-spacing: 14px;
  -webkit-text-fill-color: #ff2fb0;
}
.Pinball-Title-Compact {
  font-size: 34px;
}
.Pinball-Prompt {
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  color: #ffce3a;
  animation: pinballBlink 1.1s steps(2, end) infinite;
}
.Pinball-FinalScore {
  font-family: "Orbitron", sans-serif;
  font-size: 64px;
  font-weight: 900;
  color: #ffce3a;
  text-shadow: 0 0 40px rgba(255, 206, 58, 0.4);
}
.Pinball-KeyHint {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 340px;
  color: #5a5378;
  font-size: 12px;
  letter-spacing: 1px;
}
.Pinball-Key {
  display: inline-block;
  margin-right: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(47, 243, 255, 0.4);
  border-radius: 5px;
  background: rgba(47, 243, 255, 0.06);
  color: #2ff3ff;
  box-shadow: 0 2px 0 rgba(47, 243, 255, 0.25);
  font-family: "Share Tech Mono", monospace;
}
.Pinball-Panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 190px;
}
.Pinball-Brand {
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #8b5cff;
}
.Pinball-Brand b {
  color: #2ff3ff;
}
.Pinball-Gauge {
  padding: 14px 16px;
  border: 1px solid rgba(139, 92, 255, 0.3);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(139, 92, 255, 0.07), rgba(0, 0, 0, 0.2));
}
.Pinball-Gauge-Label {
  margin-bottom: 6px;
  color: #5a5378;
  font-size: 10px;
  letter-spacing: 3px;
}
.Pinball-Gauge-Value {
  font-family: "Orbitron", sans-serif;
  font-size: 30px;
  font-weight: 900;
  color: #fff;
}
.Pinball-Gauge[data-variant=score] .Pinball-Gauge-Value {
  color: #ffce3a;
}
.Pinball-Gauge[data-variant=multiplier] .Pinball-Gauge-Value {
  color: #ff2fb0;
}
.Pinball-BallRow {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.Pinball-Ball {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #2ff3ff 60%, #145);
  box-shadow: 0 0 10px rgba(47, 243, 255, 0.6);
}
.Pinball-Ball[data-spent] {
  background: #1a1730;
  box-shadow: none;
}
.Pinball-Legend {
  color: #5a5378;
  font-size: 10px;
  line-height: 1.9;
  letter-spacing: 1px;
}
.Pinball-Legend-Swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: middle;
}
.Pinball-Legend-Swatch[data-variant=bumper] {
  background: #ff2fb0;
}
.Pinball-Legend-Swatch[data-variant=target] {
  background: #ffce3a;
}
.Pinball-Legend-Swatch[data-variant=slingshot] {
  background: #2ff3ff;
}
.Pinball-Legend-Swatch[data-variant=spinner] {
  background: #8b5cff;
}
.Pinball-Plunger {
  margin-top: auto;
}
.Pinball-Plunger-Label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #5a5378;
  font-size: 10px;
  letter-spacing: 3px;
}
.Pinball-Plunger-Label b {
  color: #ffce3a;
}
.Pinball-Plunger-Bar {
  overflow: hidden;
  height: 12px;
  border: 1px solid rgba(255, 206, 58, 0.4);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
}
.Pinball-Plunger-Fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ffce3a, #ff2fb0);
  transition: width 0.04s linear;
}

@media (max-width: 760px) {
  .Pinball-Cabinet {
    flex-direction: column;
    align-items: center;
  }
  .Pinball-Panel {
    width: 440px;
    max-width: 100%;
  }
}
@keyframes pinballBlink {
  50% {
    opacity: 0.15;
  }
}