/* How to play: the questions kids ask, each one dropping open to a short answer. */

.howto-panel {
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 12px 20px;
}

.howto-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  color: var(--gold);
}

.howto-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.howto-q {
  border: 1px solid rgba(140, 255, 110, .18);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(30, 24, 48, .96), rgba(16, 12, 26, .98));
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.howto-q[open] {
  border-color: rgba(140, 255, 110, .55);
  box-shadow: 0 0 18px rgba(120, 255, 90, .18);
}

.howto-q summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  letter-spacing: .03em;
  color: var(--text);
}

.howto-q summary::-webkit-details-marker {
  display: none;
}

.howto-q summary::after {
  content: '▾';
  margin-left: auto;
  color: #9dff7a;
  font-size: 1.1rem;
  transition: transform .2s ease;
}

.howto-q[open] summary::after {
  transform: rotate(180deg);
}

.howto-q summary:hover,
.howto-q summary:focus-visible {
  color: #eaffd0;
  background: rgba(140, 255, 110, .06);
}

.howto-q-icon {
  flex: 0 0 auto;
  font-size: 1.35rem;
}

.howto-a {
  margin: 0;
  padding: 0 18px 14px 52px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  animation: howto-drop .22s ease-out;
}

.howto-a li {
  font-size: .98rem;
  line-height: 1.45;
  color: rgba(245, 240, 255, .92);
}

@keyframes howto-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.howto-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.howto-done {
  min-width: 160px;
}

.howto-tips {
  border: 2px solid rgba(255, 211, 107, 0.7);
  background: transparent;
  color: #ffd36b;
}

@media (prefers-reduced-motion: reduce) {
  .howto-a { animation: none; }
}
