body {
  background-color: #111;
  font-family: 'Arial Black', sans-serif;
  color: white;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  text-align: center;
  background-color: #1e1e1e;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
  max-width: 800px;
  width: 90%;
  margin-bottom: 40px;
}

.title {
  font-size: 32px;
  margin-bottom: 40px;
  text-shadow: 2px 2px 12px #000;
}

.battle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-direction: row;
  gap: 30px;
}

.vs {
  font-size: 28px;
  color: #666;
}

.contestant {
  flex: 1;
  min-height: 150px;
  padding: 30px;
  font-size: 24px;
  border-radius: 20px;
  background-color: #eee;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#left {
  box-shadow: 0 0 16px 4px #00f, 0 0 32px 6px rgba(0, 0, 255, 0.4);
}

#right {
  box-shadow: 0 0 16px 4px #f00, 0 0 32px 6px rgba(255, 0, 0, 0.4);
}

.bar {
  display: flex;
  height: 20px;
  background-color: #444;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.bar-fill {
  height: 100%;
  transition: width 0.4s ease-in-out;
}

#bar-left {
  background-color: #00f;
}

#bar-right {
  background-color: #f00;
}

.percent {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: bold;
  padding: 0 10px;
}

.next-btn {
  margin-top: 20px;
  padding: 18px 30px;
  font-size: 20px;
  font-weight: bold;
  color: #000;
  background-color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.next-btn:hover {
  background-color: #ddd;
}

.hidden {
  display: none;
}

.name {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.footer {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 20px;
  font-weight: bold;
  font-size: 16px;
}

.footer a {
  color: white;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .battle {
    flex-direction: column;
  }

  .vs {
    margin: 16px 0;
  }

  .contestant {
    width: 100%;
    margin-bottom: 6px;
    padding: 14px;
    font-size: 16px;
  }

  .container {
    border-radius: 0;
    width: 100vw;
    height: auto;
    padding: 20px;
  }

  .next-btn {
    font-size: 16px;
    padding: 12px 20px;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}