/* Saklı Şekil (kidsHiddenShape). Styles belong to this game only; every rule is scoped under .kp-hidden-shape. */
.kp-hidden-shape {
  --hs-ink: #203842;
  --hs-paper: #f7fbfd;
  --hs-sky: #dcecf6;
  --hs-rim: #7ea8c1;
  --hs-deep: #1d5c7a;
  --hs-focus: #1f5f9e;
  display: block;
  max-width: 980px;
  margin: 0 auto;
  color: var(--hs-ink);
  color-scheme: light;
  line-height: 1.5;
}
.kp-hidden-shape .screen-only { display: block; }
.kp-hidden-shape .print-only { display: none; }
.kp-hidden-shape .kp-instruction { margin: 0 0 14px; font-size: 1.05rem; }
.kp-hidden-shape .kp-subheading { margin: 14px 0 8px; font-size: 1rem; }
.kp-hidden-shape .kp-levels,
.kp-hidden-shape .kp-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.kp-hidden-shape button {
  min-width: 48px;
  min-height: 48px;
  padding: 10px 16px;
  border: 2px solid var(--hs-ink);
  border-radius: 14px;
  background: var(--hs-paper);
  color: var(--hs-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.kp-hidden-shape button[aria-pressed="true"] { background: var(--hs-sky); box-shadow: inset 0 0 0 2px var(--hs-deep); }
.kp-hidden-shape button:disabled { opacity: .45; cursor: not-allowed; }
.kp-hidden-shape button:focus-visible { outline: 4px solid var(--hs-focus); outline-offset: 3px; }
.kp-hidden-shape .kp-work { display: grid; gap: 6px; }
.kp-hidden-shape .kp-hidden-legend { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 12px; }
.kp-hidden-shape .kp-shape-tally {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--hs-rim);
}
.kp-hidden-shape .kp-shape-tally svg { width: 34px; height: 34px; flex: none; }
.kp-hidden-shape .kp-shape-tally span { flex: 1; font-size: .95rem; }
.kp-hidden-shape .kp-shape-tally strong { font-variant-numeric: tabular-nums; }
.kp-hidden-shape .kp-hidden-board {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 10px;
  border-radius: 18px;
  background: #eef6fa;
}
.kp-hidden-shape .kp-hidden-board[data-size="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kp-hidden-shape .kp-hidden-board[data-size="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kp-hidden-shape .kp-hidden-cell {
  position: relative;
  aspect-ratio: 1;
  padding: 4px;
  border-radius: 12px;
  background: #fcf8ec;
  touch-action: manipulation;
}
.kp-hidden-shape .kp-hidden-cell svg { display: block; width: 100%; height: 100%; }
.kp-hidden-shape .kp-hidden-cell[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--hs-deep); background: #e6f4ee; }
.kp-hidden-shape .kp-check { position: absolute; right: 4px; top: 4px; width: 26px; height: 26px; }
.kp-hidden-shape .kp-status { min-height: 2.2em; margin: 6px 0; font-weight: 700; }
.kp-hidden-shape .kp-status[data-solved="true"] { color: var(--hs-deep); }
.kp-hidden-shape .kp-hint:empty { display: none; }
.kp-hidden-shape .kp-hint { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #fff7dc; }
.kp-hidden-shape .kp-trains { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--hs-sky); }
.kp-hidden-shape .kp-trains p { margin: 4px 0; }
.kp-hidden-shape .kp-trains h2, .kp-hidden-shape .kp-trains p { color: var(--hs-ink); }
.kp-hidden-shape .kp-why { font-style: italic; }
@media (min-width: 700px) {
  .kp-hidden-shape .kp-hidden-legend { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kp-hidden-shape .kp-hidden-board { max-width: 560px; }
}
@media print {
  .kp-hidden-shape .screen-only { display: none; }
  .kp-hidden-shape .print-only { display: block; color: #000; }
  .kp-hidden-shape .print-only button { display: none; }
  .kp-hidden-shape .kp-hidden-cell { border: 1px solid #000; background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .kp-hidden-shape * { transition: none !important; animation: none !important; }
}
