<head>
  <style>
    /* Emoji grid container */
    #emoji-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 10px;
      max-height: 250px;
      overflow-y: auto;
    }

    /* Emoji items */
    .emoji-item {
      font-size: 24px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: #f0f0f0;
      transition: transform 0.2s, background 0.2s;
    }

    .emoji-item:hover {
      transform: scale(1.2);
      background: #ffe066;
    }

    /* Dark mode support */
    body.dark .emoji-item {
      background: #333;
      color: #fff;
    }

    body.dark .emoji-item:hover {
      background: #ff6b6b;
    }

    /* Emoji panel styling */
    #emoji-panel {
      border: 1px solid #ccc;
      border-radius: 8px;
      background: #fff;
      padding: 10px;
      width: 300px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    body.dark #emoji-panel {
      background: #222;
      border-color: #444;
    }
  </style>
</head>
