@font-face {
  font-family: "Pokemon Pixel";
  src: local("Courier New");
}

.pokedle-page {
  background:
    linear-gradient(180deg, rgba(91, 181, 222, .92), rgba(91, 181, 222, .64) 34%, rgba(87, 126, 86, .72)),
    url("https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/25.png");
  background-size: cover, 420px;
  background-position: center, right bottom;
  background-attachment: fixed;
  color: #f8fbff;
}

.pokedle-page::before {
  background-image: none;
}

.poke-topbar {
  background: rgba(36, 84, 130, .88);
  border-bottom-color: rgba(255, 255, 255, .34);
}

.poke-topbar strong,
.poke-hero h1,
.pokedle-page .btn,
.pokedle-page th,
.pokedle-page .result-card,
.pokedle-page .champ-name {
  font-family: "Pokemon Pixel", "Courier New", monospace;
  letter-spacing: 0;
}

.poke-hero {
  border-bottom: 4px solid rgba(255, 255, 255, .82);
  background:
    linear-gradient(90deg, rgba(36, 84, 130, .92), rgba(88, 174, 215, .52)),
    radial-gradient(circle at 20% 40%, rgba(255, 255, 255, .32), transparent 240px);
}

.poke-hero__inner {
  min-height: 130px;
  display: flex;
  align-items: center;
}

.poke-hero h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 76px);
  color: #ffe96a;
  -webkit-text-stroke: 2px #24548a;
  text-shadow: 3px 3px 0 #1d3760;
}

.poke-hero p {
  margin: 8px 0 0;
  color: #fff;
  font-weight: 700;
}

.poke-panel {
  background: rgba(68, 129, 158, .72);
  border: 0;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .24);
}

.pokedle-page .message,
.pokedle-page .controls {
  background: rgba(32, 79, 118, .4);
  border-bottom-color: rgba(255, 255, 255, .28);
}

.pokedle-page .reset-countdown {
  border-color: rgba(255, 255, 255, .42);
  color: #ffe96a;
  background: rgba(29, 55, 96, .46);
  font-family: "Pokemon Pixel", "Courier New", monospace;
  text-shadow: 2px 2px 0 #1d3760;
}

.poke-table {
  border-spacing: 7px 14px;
}

.poke-table th {
  color: white;
  font-size: clamp(13px, 1.4vw, 19px);
  text-shadow: 2px 2px 0 #1d3760;
}

.poke-table th::after {
  background: white;
  height: 6px;
}

.pokedle-page .champ-card,
.pokedle-page .result-card {
  min-height: 94px;
  border: 5px solid #050505;
  border-radius: 8px;
  box-shadow: none;
}

.pokedle-page .champ-card {
  background: white;
}

.pokedle-page .champ-card img {
  width: 72px;
  height: 72px;
  min-height: 72px;
  image-rendering: pixelated;
  object-fit: contain;
}

.poke-mon-card .champ-name {
  display: none;
}

.pokedle-page .result-card {
  font-size: clamp(13px, 1.7vw, 22px);
  color: #050505;
  text-shadow: none;
}

.pokedle-page .result-card::before,
.pokedle-page .result-card::after {
  opacity: .2;
}

.pokedle-page .match {
  background: #42e889;
}

.pokedle-page .partial {
  background: #ffe33f;
}

.pokedle-page .miss {
  background: #f65f45;
}

.poke-victory-art {
  min-height: 210px;
  justify-content: center;
  align-items: center;
  gap: 18px;
  background: linear-gradient(180deg, #69bce1, #3475aa);
}

.victory-pokemon {
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
}

.pokedle-page .leaderboard,
.pokedle-page .auth-card,
.pokedle-page .victory {
  background: rgba(38, 89, 133, .96);
}

@media (max-width: 760px) {
  .poke-table { border-spacing: 4px 8px; }
  .pokedle-page .champ-card,
  .pokedle-page .result-card {
    border-width: 3px;
    min-height: 72px;
  }
  .pokedle-page .champ-card img {
    width: 54px;
    height: 54px;
    min-height: 54px;
  }
}
