.emojiBtn{
    font-size:40px;width:64px;height:64px;
    border-radius:10px;border:1px solid #888;
    cursor:pointer;margin:4px;
}

/* Dark Mode */
body.dark{
    background:#111;
    color:#ddd
}
body.dark td{
    border-color:#aaa
}
body.dark td.bold{
    background:#333
}
body.dark .emojiBtn{
    background:#222;
    color:#fff;
    border-color:#777
}
body.dark td.ok{
    background:#2e6f3e
}
body.dark td.err{
    background:#7a2e2e
}
.sudoku-menu {
    font-size: 0.95em;
    margin: 10px 0;
}
.radikal-link{
    position:relative;
    text-decoration:none;
}

.radikal-hint{
    position:absolute;
    bottom:140%;
    left:50%;
    transform:translateX(-50%);
    width:260px;
    padding:12px;
    background:#fff;
    color:#000;
    border:1px solid #888;
    border-radius:10px;
    font-size:0.85em;
    line-height:1.4;
    box-shadow:0 6px 16px rgba(0,0,0,0.25);
    opacity:0;
    pointer-events:none;
    transition:opacity .25s ease;
    z-index:999;
}

/* Pfeil */
.radikal-hint::after{
    content:"";
    position:absolute;
    top:100%;
    left:50%;
    transform:translateX(-50%);
    border-width:8px;
    border-style:solid;
    border-color:#fff transparent transparent transparent;
}

.radikal-link:hover .radikal-hint{
    opacity:1;
}

/* Dark Mode */
body.dark .radikal-hint{
    background:#222;
    color:#eee;
    border-color:#666;
}
body.dark .radikal-hint::after{
    border-color:#222 transparent transparent transparent;
}
.dialog {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.dialog.hidden { display:none; }
.dialog-box {
  background: #fff;
  padding: 1em;
  border-radius: 10px;
  max-width: 320px;
  text-align: center;
}
body.dark .dialog-box { background:#222; color:#eee; }
.menu-dropdown summary {
    cursor: pointer;
    font-weight: bold;
    padding: 6px;
    list-style: none;
}

.menu-dropdown summary::-webkit-details-marker {
    display: none;
}

.menu-links {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.menu-links a {
    text-decoration: none;
    white-space: nowrap;
}

.menu-links a:hover {
    text-decoration: underline;
}
.kobold {
  font-size: 1.8em;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s ease;
}

.kobold:hover {
  transform: scale(1.2);
}

.ok {
  color: green;
  font-weight: bold;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#emojiPadContainer {
  position: relative;
  width: fit-content; /* passt sich der Button-Breite an */
  margin: 0 auto;      /* zentriert horizontal */
  user-select: none;   /* Textauswahl verhindern */
  display: flex;       /* für bessere Button-Anordnung */
  gap: 6px;            /* Abstand zwischen Buttons */
  }

    
#emojiPadContainer button {
  font-size: 1.5em;    /* Größe der Buttons */
  padding: 0.3em 0.6em;
  border-radius:10px;
  border:1px solid #888;
  cursor:pointer;margin:4px;
  background-color: #888;
  transition: background-color 0.2s ease;
}

#emojiPadContainer button:hover {
  background-color: #d0d0d0;
}
.hint-button {
  margin-top: 10px;
  padding: 6px 14px;
  cursor: pointer;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.hint-button:hover {
  background-color: #ddd;
}

.hint-text {
  margin-top: 8px;
  font-style: italic;
  color: #555;
  max-width: 320px;
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.hidden {
  display: none;
}
.menu-dropdown summary {
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  padding-left: 1em;
}

.menu-links a {
  text-decoration: none;
}

.menu-links a:hover {
  text-decoration: underline;
}
