body {
  margin: 0;
  font-family: Arial;
  background: #ffe6f0;
  text-align: center;
}


.screen {
  display: none;
  padding: 20px;
}

.active {
  display: block;
}


.logo {
  width: 220px;
}


button {
  padding: 10px 20px;
  border: none;
  background: #ff66a3;
  color: white;
  border-radius: 10px;
  cursor: pointer;
}


.avatars {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 10px;
}

.avatar img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.avatar img:hover {
  transform: scale(1.1);
  border: 2px solid #ff66a3;
}



#gameBoard {
  display: grid;
  gap: 10px;
  justify-content: center;
}

.card {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100%;
  height: 100%;
  display: none;
}

.card.flipped img {
  display: block;
}


#scoreBoard {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}


#scoreBoard table {
  border-collapse: collapse;
  font-weight: bold;
  background: white;

  border: 2px solid #ff66a3;
  border-radius: 12px;
  overflow: hidden;

  min-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);

  margin: 0 auto;
}


#scoreBoard th,
#scoreBoard td {
  border: 1px solid #ff66a3;
  padding: 8px 12px;
  text-align: center;
}


#scoreBoard th {
  background: #ff66a3;
  color: white;
}


#scoreBoard img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  vertical-align: middle;
  margin-right: 6px;
}


.activePlayer td {
  background: #fff0f6;
  border-top: 2px solid #ff66a3;
  border-bottom: 2px solid #ff66a3;
}

.activePlayer td:first-child {
  border-left: 2px solid #ff66a3;
}

.activePlayer td:last-child {
  border-right: 2px solid #ff66a3;
}



.topPanel {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}


.turnBox,
.levelBox {
  border: 2px solid #ff66a3;
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
  min-width: 90px;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.turnBox span,
.levelBox span {
  display: block;
  font-size: 11px;
  color: #555;
  font-weight: 700;
}

.turnBox strong,
.levelBox strong {
  font-size: 14px;
  color: #000;
  font-weight: 800;
}