/* Sprunky · 年龄 / 学科选择页 */

.play-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 24px 20px;
}

.play-head {
  margin-bottom: 28px;
}

.play-head h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4.6vw, 50px);
  font-weight: 900;
  letter-spacing: -0.5px;
}

.play-sub {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink-soft);
}

.step {
  margin-bottom: 20px;
  padding: 24px 28px 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid var(--ink);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}

.step h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 21px;
  font-weight: 900;
}

.step-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  font-size: 17px;
  box-shadow: 0 3px 0 var(--ink);
  transform: rotate(-4deg);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 176px;
  padding: 15px 18px;
  text-align: left;
  font-family: inherit;
  font-size: 19px;
  font-weight: 900;
  color: var(--ink);
  background: var(--card);
  border: 3px solid rgba(46, 37, 71, 0.16);
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  -webkit-tap-highlight-color: transparent;
}

.chip small {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.chip:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 37, 71, 0.4);
}

.chip.is-active {
  border-color: var(--ink);
  background: #fff3df;
  box-shadow: 0 5px 0 var(--ink);
  transform: translateY(-2px);
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.subject-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-align: left;
  font-family: inherit;
  background: var(--card);
  border: 3px solid rgba(46, 37, 71, 0.16);
  border-radius: 24px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  -webkit-tap-highlight-color: transparent;
}

.subject-card:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 37, 71, 0.4);
}

.subject-card.is-active {
  border-color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  transform: translateY(-2px);
  background: #fffaf0;
}

.subject-card.is-locked {
  cursor: not-allowed;
  opacity: 0.62;
}

.subject-card.is-locked:hover {
  transform: none;
  border-color: rgba(46, 37, 71, 0.16);
}

.subject-art {
  flex-shrink: 0;
  width: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subject-art .char-img {
  width: auto;
  height: 64px;
}

.subject-info {
  min-width: 0;
}

.subject-name {
  display: block;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
}

.subject-skill {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.subject-stars {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--yellow);
  text-shadow: 0 1px 0 rgba(46, 37, 71, 0.35);
}

.subject-lock {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(46, 37, 71, 0.08);
  font-size: 11px;
  font-weight: 900;
  color: var(--ink-soft);
}

.start-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  padding: 22px 26px;
  background: linear-gradient(120deg, #fff6e6 0%, #f3ecff 100%);
  border: 4px solid var(--ink);
  border-radius: 34px;
  box-shadow: 0 12px 0 rgba(46, 37, 71, 0.12);
}

.start-guide {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.start-guide-art {
  flex-shrink: 0;
  width: 84px;
}

.start-guide-name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 900;
  color: var(--orange-deep);
}

.start-guide-text {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (max-width: 620px) {
  .step {
    padding: 20px;
  }

  .chips {
    flex-direction: column;
  }

  .chip {
    min-width: 0;
  }

  .subject-grid {
    grid-template-columns: 1fr;
  }

  .start-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .start-panel .btn {
    width: 100%;
  }
}
