* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #0f172a, #020617);
  color: #fff;
}

.app {
  max-width: 850px;
  margin: auto;
  padding: 25px;
}

.header {
  text-align: center;
  margin-bottom: 25px;
}

.header h1 {
  font-size: 34px;
  font-weight: 700;
  color: #00f2fe;
  text-shadow: 0 0 10px #00f2fe;
  transition: 0.3s;
}

.header h1:hover {
  text-shadow: 0 0 20px #00f2fe;
}

.header p {
  color: #aaa;
  font-size: 14px;
}

.tabs {
  position: relative;
  display: flex;
  background: rgba(255,255,255,0.05);
  border-radius: 40px;
  padding: 6px;
  backdrop-filter: blur(10px);
}

.tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: none;
  color: #aaa;
  cursor: pointer;
  font-weight: 600;
  z-index: 2;
}

.tab:hover {
  color: #fff;
  transform: scale(1.05);
}

.tab.active {
  color: #fff;
}

.indicator {
  position: absolute;
  height: 100%;
  width: 33.3%;
  background: linear-gradient(45deg, #00f2fe, #4facfe);
  border-radius: 40px;
  top: 0;
  left: 0;
  transition: 0.3s ease;
  z-index: 1;
}

.content {
  margin-top: 25px;
}

.game {
  display: none;
  padding: 25px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);
  animation: fade 0.4s ease;
}

.game.active {
  display: block;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h2 {
  text-align: center;
  margin-bottom: 10px;
}
input, select {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  outline: none;
  margin: 12px 0;
  text-align: center;
  background: #020617;
  color: #fff;
}

input:focus, select:focus {
  box-shadow: 0 0 10px #00f2fe;
}

.actions {
  display: flex;
  gap: 12px;
}

button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  background: linear-gradient(45deg, #00f2fe, #4facfe);
  color: #000;
  position: relative;
  overflow: hidden;
}

button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,242,254,0.5);
}

button:active {
  transform: scale(0.95);
}

button::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

button:active::after {
  width: 200px;
  height: 200px;
  opacity: 0;
  transition: 0.4s;
}

.feedback {
  margin-top: 15px;
  text-align: center;
}

#gResult {
  font-size: 18px;
  font-weight: 600;
}

#gScore {
  font-size: 14px;
  color: #aaa;
}

.win {
  color: #22c55e;
  animation: pop 0.4s ease;
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.rps {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
}

.rps button {
  font-size: 24px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff;
  color: #000;
}

.rps button:hover {
  transform: scale(1.1);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.card {
  height: 85px;
  background: #fff;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  font-size: 26px;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.05);
}

.hide {
  background: #020617;
  color: #020617;
}

#restartMemory {
  margin-top: 10px;
}