/* Shared layout for the levelled Explore games (Light Chase, One Stroke).
   Builds on explore.css, which supplies the dark game palette and header. */
.explore-page .game-header nav > a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.explore-page .game-header { flex-wrap: wrap; row-gap: 4px; padding-block: 8px; }
.explore-page .game-header nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
@media (max-width: 560px) {
  .explore-page .game-header { justify-content: center; }
  .explore-page .game-header nav { justify-content: center; gap: 14px; }
}

.level-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 7px; margin: 16px auto 14px; }
.level-set { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 7px; margin-inline: 4px; }
.level-group { color: #879da8; font-size: .75rem; letter-spacing: .06em; margin-inline: 6px 2px; }
.level-chip {
  position: relative;
  min-width: 44px; min-height: 44px; padding: 6px 10px;
  border: 1px solid #5f757f; border-radius: 999px;
  background: transparent; color: #f7e5ae; font-size: .9375rem; font-weight: 600;
  transition: background .18s, border-color .18s, color .18s;
}
.level-chip:hover { background: #2c3f49; border-color: #899faa; }
.level-chip[aria-current="step"] { background: #f6e09f; color: #2f414a; border-color: #f6e09f; }
.level-chip.is-done::after, .level-chip.is-helped::after {
  content: '✓'; position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #f0d78c; color: #2f414a; font-size: .6875rem; line-height: 18px; text-align: center;
}
/* Solved with help (a hint that shows the answer, or a wrong guess): a hollow tick. */
.level-chip.is-helped::after { background: #2f414a; color: #f0d78c; box-shadow: inset 0 0 0 1.5px #f0d78c; line-height: 18px; }
.level-chip:focus-visible { outline: 3px solid #f6e09f; outline-offset: 3px; }
.level-legend { margin: -6px 0 12px; text-align: center; color: #879da8; font-size: .8125rem; }

.game-card { border: 1px solid #f6f2e9; border-radius: 13px; padding: 20px 24px; background: linear-gradient(145deg, #fffdf8, #fffdf8); box-shadow: 0 7px 22px #00000008; }
.level-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 14px; }
.level-kicker { margin: 0; color: #4b5b63; font-size: .8125rem; letter-spacing: .04em; }
.level-head h2 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.2; margin: 2px 0 6px; color: #22313a; }
.level-rule { margin: 0; color: #4b5b63; font-size: .9375rem; line-height: 1.7; }
.board-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: .875rem; font-variant-numeric: tabular-nums; }
.move-count { color: #22313a; font-weight: 600; }
.target { color: #4b5b63; }
.board-tools { display: flex; gap: 22px; margin-top: 6px; }
.game-feedback { min-height: 1.7em; margin: 12px 0 0; color: #22313a; font-size: 1rem; line-height: 1.65; }
.game-feedback.is-good { color: #7d5a10; }
.game-feedback.is-warn { color: #7d5a10; }
.game-card .check-button { margin-top: 14px; }
a.check-button { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
a.check-button[hidden] { display: none; }

@media (max-width: 480px) {
  .game-card { padding: 17px 15px; }
  .level-head h2 { font-size: 1.5rem; }
  .level-chip { min-width: 42px; }
}
