/* Tagesrätsel (ADR-384): Sudoku, Suchrätsel, Labyrinth – am Bildschirm spielbar, gedruckt nur das Rätsel. */
.vp {
  margin: 1.5rem 0;
}
.vp-intro {
  font-size: 1.05rem;
}
.vp-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.vp-actions button {
  padding: 0.4rem 0.9rem;
  border: 2px solid currentColor;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.vp-status {
  text-align: center;
  min-height: 1.4em;
  font-size: 0.9rem;
}

/* Sudoku */
.vp-sudoku {
  border-collapse: collapse;
  margin: 0 auto;
  border: 3px solid currentColor;
}
.vp-sudoku td {
  width: min(10vw, 2.6rem);
  height: min(10vw, 2.6rem);
  padding: 0;
  border: 1px solid #999;
  text-align: center;
  font-size: 1.25rem;
}
.vp-sudoku tr:nth-child(3n) td {
  border-bottom: 3px solid currentColor;
}
.vp-sudoku td:nth-child(3n) {
  border-right: 3px solid currentColor;
}
.vp-sudoku .vp-given {
  font-weight: 700;
}
.vp-sudoku input {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  color: #2a6fb0;
}
.vp-sudoku input.vp-wrong {
  color: #c0392b;
  background: #fbe9e7;
}
.vp-sudoku input.vp-shown {
  color: #2e8b57;
}

/* Suchrätsel */
.vp-ws-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: center;
}
.vp-ws {
  border-collapse: collapse;
  user-select: none;
}
.vp-ws td {
  width: min(6vw, 1.9rem);
  height: min(6vw, 1.9rem);
  padding: 0;
  text-align: center;
  font-family: ui-monospace, monospace;
  font-size: min(4vw, 1.1rem);
  cursor: pointer;
}
.vp-ws td.vp-start {
  outline: 2px solid #2a6fb0;
}
.vp-ws td.vp-found {
  background: #fff1a8;
}
.vp-words {
  columns: 2;
  column-gap: 2.5rem;
  margin: 0;
  padding-left: 1.2rem;
}
.vp-words li.vp-found {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Labyrinth */
.vp-maze {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.vp-maze__walls line {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
}
.vp-maze__path {
  fill: none;
  stroke: #c0392b;
  stroke-width: 4;
  stroke-linejoin: round;
  visibility: hidden;
}
.vp-maze--solved .vp-maze__path {
  visibility: visible;
}

@media print {
  header,
  footer,
  .wp-site-blocks > header,
  .wp-site-blocks > footer,
  .vp-actions,
  .vp-status,
  .vp-nav {
    display: none !important;
  }
  .vp-ws td.vp-found,
  .vp-ws td.vp-start {
    background: none;
    outline: none;
  }
}
