body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #111;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 1rem;
}

header,
footer {
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.header-inner,
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.footer-inner {
  justify-content: center;
  font-size: 0.85rem;
  color: #777;
}

.logo-img {
  height: 45px;
  max-height: 10vh;
  width: auto;
  display: block;
}

#language-selector {
  text-align: right;
}

#language-select {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #111;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

#language-select option {
  background-color: #fff;
  color: #111;
}

h1,
h2 {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
}

p {
  font-size: 1.2rem;
  font-weight: 400;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 1rem;
  color: #555;
}

.battle {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0 2rem;
  flex-wrap: wrap;
}

.battle-card {
  flex: 1;
  min-width: 220px;
  max-width: 500px;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.battle-card:hover,
.card:hover,
.subpage-nav-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.emoji-box {
  font-size: 14rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
  position: relative;
}

.symbol {
  margin-top: 0.75rem;
  font-weight: 700;
  color: #333;
}

@keyframes slide-in-left {
  from {
    opacity: 0.1;
    transform: translateX(-60%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0.1;
    transform: translateX(60%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slide-in-left 1s ease forwards;
}

.slide-in-right {
  animation: slide-in-right 1s ease forwards;
}

.subpage-nav {
  margin: 3rem 0;
}

.subpage-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  gap: 0.4rem;
}

.subpage-nav-grid a {
  display: block;
  width: 100%;
  padding: 0.6rem 0;
  background: #5271ff;
  color: #fff;
  border-radius: 4px;
  font-weight: 400;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ranking {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card .emoji-box {
  font-size: 6rem;
  background: #f7f7f7;
}

.ranking-number {
  position: absolute;
  top: 8px;
  left: 8px;
  color: #5271ff;
  font-weight: 700;
  font-size: 1.6rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

.hex-bold {
  font-weight: 700;
  font-size: 0.9rem;
}

.wins-losses {
  font-size: 0.8rem;
  font-weight: 400;
  color: #555;
  margin: 0.25rem 0;
}

.resource-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.resource-icon {
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.explanation {
  margin-top: 3rem;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.explanation h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-text {
  margin-top: 2rem;
  font-weight: 700;
}

#seo-text {
  opacity: 0;
  height: 0;
  overflow: hidden;
  position: absolute;
}

@media (max-width: 600px) {
  .logo-img {
    height: 36px;
  }

  h1,
  h2 {
    font-size: 1.4rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }

  p {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .battle {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }

  .battle-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0.5rem;
  }

  .battle-card .emoji-box {
    font-size: 6rem;
    padding: 0.5rem;
  }

  .subpage-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
