:root { --pico-spacing: 1rem; }
body { padding-bottom: 3rem; }
header h1 { margin-bottom: .2rem; }
.muted { color: var(--pico-muted-color); }
.small { font-size: .85rem; }

.game-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}
.stats { display: flex; gap: 1.4rem; font-size: 1.05rem; }
.game-top button { width: auto; margin: 0; }

.stage {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.canvas-col { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.canvas-wrap { text-align: center; }
#sprite {
  image-rendering: pixelated;
  background:
    repeating-conic-gradient(#2a2a2a 0% 25%, #222 0% 50%) 50% / 24px 24px;
  border-radius: var(--pico-border-radius);
  max-width: 100%;
  height: auto;
}
#poke-name { margin-top: .4rem; font-weight: bold; font-size: 1.1rem; color: var(--pico-color); }

.controls { flex: 1; min-width: 280px; }
.controls label {
  display: block;
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.controls .val {
  float: right;
  font-weight: 400;
  color: var(--pico-muted-color);
}
.controls input[type="range"] { margin-top: .4rem; }
#check-btn { width: 100%; }

.compare {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
}
.compare figure { margin: 0; text-align: center; }
.compare img {
  image-rendering: pixelated;
  width: 140px; height: 140px;
  border-radius: var(--pico-border-radius);
  background: repeating-conic-gradient(#2a2a2a 0% 25%, #222 0% 50%) 50% / 16px 16px;
  border: 1px solid var(--pico-muted-border-color);
}
.compare figcaption { color: var(--pico-muted-color); font-size: .85rem; margin-top: .3rem; }

.diff {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin: 1rem 0;
  padding: .8rem 0;
  border-top: 1px solid var(--pico-muted-border-color);
  border-bottom: 1px solid var(--pico-muted-border-color);
}
.diff .big { font-size: 1.4rem; font-weight: bold; display: block; }
.diff small { color: var(--pico-muted-color); }

.win-stats { display: flex; justify-content: space-around; text-align: center; margin: 1rem 0; }
.win-stats .big { font-size: 1.8rem; font-weight: bold; display: block; }
.win-stats small { color: var(--pico-muted-color); }

@media (max-width: 640px) {
  .stage { gap: 1.5rem; }
}
