#pokedex-screen .game-header {
  margin-bottom: 16px;
}

.dex-count {
  text-align: center;
  color: #666;
  font-size: var(--text-sm);
  margin-bottom: 16px;
}

.dex-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  direction: ltr;
  max-width: 780px;
  margin: 0 auto;
}

.dex-card {
  width: 150px;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .05));
  border: 2px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  padding: 16px 10px 12px;
  text-align: center;
  transition: .3s;
  cursor: pointer;
}

.dex-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), .15);
}

.dex-card .poke-sprite {
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
}

.dex-id {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  color: #aaa;
  margin-top: 6px;
  direction: ltr;
}

.dex-name {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: #fff;
  margin-top: 2px;
  direction: ltr;
}

.dex-he {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  color: #aaa;
  margin-top: 1px;
}

.dex-type {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: #fff;
  margin-top: 6px;
  text-transform: capitalize;
}

/* ============ Honeycomb View ============ */
.hex-grid {
  margin: 0 auto;
  padding: 10px 10px;
  direction: ltr;
}

.hex-row {
  display: flex;
  justify-content: center;
  margin-top: -34px;
  gap: 0;
}

.hex-row:first-child {
  margin-top: 0;
}

.hex-row-offset {
  display: flex;
  justify-content: center;
  margin-top: -34px;
  gap: 0;
}

.hex-cell {
  width: 130px;
  height: 145px;
  margin: 0 2px;
  flex-shrink: 0;
  contain: layout style paint;
}

.hex-cell.hex-3d {
  perspective: 600px;
}

.hex-cell.hex-empty {
  visibility: hidden;
  cursor: pointer;
}

.hex-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.hex-3d .hex-inner {
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  transform-style: preserve-3d;
}

.hex-front,
.hex-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-3d .hex-front,
.hex-3d .hex-back {
  backface-visibility: hidden;
}

.hex-front {
  background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
  transition: background .3s;
}

.hex-cell:hover .hex-front {
  background: linear-gradient(145deg, rgba(var(--accent-rgb), .15), rgba(var(--accent-rgb), .05));
}

.hex-front .poke-sprite {
  width: 65%;
  height: 65%;
  image-rendering: pixelated;
}

.hex-front-name {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
  direction: ltr;
  margin-top: -20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

.hex-back {
  background: linear-gradient(145deg, rgba(var(--accent-rgb), .12), rgba(255, 255, 255, .06));
  transform: rotateY(180deg);
  visibility: hidden;
  gap: 2px;
}

.hex-3d .hex-back {
  visibility: visible;
}

.hex-cell.flipped .hex-inner {
  transform: rotateY(180deg);
}

.hex-id {
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  color: #aaa;
  direction: ltr;
}

.hex-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: #fff;
  direction: ltr;
}

.hex-he {
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  color: #ccc;
}

.hex-type {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: #fff;
  text-transform: capitalize;
  margin-top: 2px;
}
