/* Woordzoeker — bovenop klastools.css. js/woordzoeker.js rekent uit hoe groot het rooster kan. */
.app.wz { height: 100%; height: 100dvh; min-height: 520px; gap: 10px; }

.setup { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; }
.seg-label { align-self: center; padding: 0 6px 0 8px; font-weight: 700; font-size: 15px; color: var(--muted); }
#segGroep button { min-width: 46px; font-size: 20px; }
.small-go { font-size: 20px; padding: 9px 22px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 4px 0 #b88900; }

.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; }
.scores { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pill { display: flex; align-items: baseline; gap: 8px; padding: 5px 14px; border-radius: 14px; background: rgba(0,0,0,.25); font-weight: 700; font-size: 15px; color: var(--muted); }
.pill b { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.pill.rec b { color: var(--gold); }
.bar .status { flex-basis: 100%; font-size: 17px; color: var(--ink); }
.bar .status b { color: var(--gold); }

/* speelveld: rooster en woordenlijst; breed naast elkaar, smal onder elkaar */
.wz-stage { min-height: 260px; flex-direction: column; gap: 12px; align-items: center; justify-content: flex-start; }
.wz-stage.side { flex-direction: row; justify-content: center; align-items: center; gap: 24px; }
.wz-hold { position: relative; width: var(--side, 320px); height: var(--side, 320px); flex: none; touch-action: none; }
.wz-grid {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n, 10), 1fr); grid-template-rows: repeat(var(--n, 10), 1fr);
  background: #fff; border-radius: 16px; padding: 0; box-shadow: 0 0 0 6px #fff, 0 16px 40px rgba(0,0,0,.4); cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none;
}
.cell {
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #1a1640;
  font-size: calc(var(--side, 320px) / var(--n, 10) * .58); line-height: 1; position: relative; z-index: 2; pointer-events: none;
}
.wz-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.wz-lines line { stroke-width: .74; stroke-linecap: round; }
.wz-lines line.hit { opacity: .55; }
.wz-lines line.sel { stroke: #ffd43b !important; opacity: .7; }
.wz-lines .hintdot { fill: none; stroke: #e8590c; stroke-width: .1; animation: pulse 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .6; } }

.wz-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; max-width: 760px; }
.wz-stage.side .wz-list { flex-direction: column; flex-wrap: nowrap; width: 220px; max-height: 100%; overflow-y: auto; }
.wz-list li {
  font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.2; padding: 4px 14px; border-radius: 12px;
  background: rgba(255,255,255,.09); box-shadow: inset 4px 0 0 rgba(255,255,255,.18);
}
.wz-list li.found { background: var(--wc); color: #1a1640; text-decoration: line-through; text-decoration-thickness: 3px; box-shadow: none; }

@media (max-width: 560px) {
  #segGroep button { min-width: 36px; padding: 8px 9px; font-size: 18px; }
  .small-go { font-size: 17px; padding: 8px 14px; }
  .pill b { font-size: 20px; }
  .wz-list li { font-size: 16px; padding: 3px 10px; }
  .bar .status { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .wz-lines .hintdot { animation: none; } }
