/* Word Hunt — letter-grid hunt with a one-phrase clue */
.wh-app {
  --wh-ink: #1e2a1f;
  --wh-leaf: #2f7a45;
  --wh-gold: #d4a017;
  --wh-paper: #f7f1e1;
  --wh-found: #c5e8c4;
  --wh-pick: #ffe08a;
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: var(--wh-ink);
}

.wh-app__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.wh-app__logo-wrap {
  margin: 0;
  line-height: 0;
}

.wh-app__logo {
  display: block;
  width: auto;
  max-width: min(100%, 14rem);
  max-height: 4.6rem;
  height: auto;
  object-fit: contain;
}

.wh-app__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.02em;
}

.wh-app__meta {
  margin: 0;
  font-weight: 700;
  color: var(--text-muted);
}

.wh-timer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 4.5rem;
}

.wh-timer__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wh-leaf);
}

.wh-timer__value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.wh-clue {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 2px solid rgba(47, 122, 69, 0.28);
  border-radius: 12px;
  background: var(--wh-paper);
  font-size: 1.05rem;
  font-weight: 700;
}

.wh-clue strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wh-leaf);
  margin-bottom: 0.2rem;
}

.wh-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 820px) {
  .wh-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(12rem, 0.85fr);
    align-items: start;
  }
}

.wh-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--wh-size, 16), minmax(0, 1fr));
  gap: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  padding: 0.35rem;
  border: 1px solid rgba(30, 42, 31, 0.35);
  border-radius: 4px;
  background: var(--wh-paper);
  overflow: visible;
}

.wh-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.wh-cell {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.62rem, 2.2vw, 0.95rem);
  letter-spacing: 0.02em;
  color: var(--wh-ink);
  background: transparent;
  cursor: pointer;
  border-radius: 0;
}

.wh-cell.is-pick {
  background: rgba(212, 160, 23, 0.22);
}

.wh-cell.is-hint::after {
  content: '';
  position: absolute;
  inset: 10%;
  border: 2.5px solid #c2410c;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.wh-found {
  margin: 0;
  padding: 0.75rem;
  border: 2px solid rgba(47, 122, 69, 0.22);
  border-radius: 12px;
  background: var(--bg-panel);
  max-height: 28rem;
  overflow: auto;
}

.wh-found__count {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wh-leaf);
}

.wh-found__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem 0.65rem;
}

.wh-found__list li {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.wh-status {
  min-height: 1.35em;
  text-align: center;
  font-weight: 800;
}

.wh-status.is-error { color: #b42318; }
.wh-status.is-win { color: var(--wh-leaf); font-size: 1.1rem; }

.wh-result {
  padding: 0.85rem 1rem;
  border: 2px solid rgba(47, 122, 69, 0.28);
  border-radius: 12px;
  background: var(--wh-paper);
}

.wh-result__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.wh-result__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: 0.5rem;
  margin: 0;
}

.wh-result__stats div {
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(30, 42, 31, 0.12);
}

.wh-result__stats dt {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wh-result__stats dd {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.wh-result__summary,
.wh-result__link { margin: 0.7rem 0 0; font-size: 0.92rem; font-weight: 700; }
.wh-result__actions { margin: 1rem 0 0; }
.wh-result__link a { color: var(--wh-leaf); }

.wh-app__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

/* Daily (signed-out) page uses the same shell class; drop the card frame so it matches fullscreen play. */
.play-game-shell--wordhunt {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.play-fullscreen:has(.play-game-shell--wordhunt),
body.play-fullscreen:has(.play-game-shell--wordhunt) .play-stage {
  background: var(--bg-deep);
}
body.play-fullscreen .play-game-shell--wordhunt {
  background: transparent;
  overflow: visible;
  padding: 1.25rem 1rem 4.5rem;
}
