.welcome-page { max-width: 1000px; margin: 0 auto; padding: 20px 26px; text-align: center; }
.welcome-eyebrow { margin: 0 0 7px; color: var(--accent-dark); font-size: .7rem; font-weight: 800; letter-spacing: .16em; }
.welcome-page h2 { margin: 0 0 8px; color: var(--accent-dark); font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.15; }
.welcome-intro { max-width: 720px; margin: 0 auto 15px; color: var(--muted); font-size: .98rem; line-height: 1.4; }
.welcome-subjects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.welcome-subject { padding: 13px 12px; border-radius: 15px; background: #fff7e7; border: 1px solid #eed1aa; }
.welcome-subject > span { display: block; margin-bottom: 5px; font-size: 1.25rem; font-weight: 900; }
.welcome-subject h3 { margin: 0 0 5px; font-size: 1rem; }
.welcome-subject p { margin: 0; font-size: .84rem; line-height: 1.35; color: #5b4940; }
.welcome-spanish { color: #8f2118; background: #fff0e4; }
.welcome-citizenship { color: #214f83; background: #eef3fa; border-color: #c9d6e8; }
.welcome-bible { color: #2d6b42; background: #edf5e9; border-color: #cbdcc6; }
.welcome-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 17px 0 10px; }
.welcome-actions button { min-height: 44px; padding: .65rem 1.35rem; font-size: .96rem; }
.welcome-support { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.welcome-credit { margin: 12px 0 0; font-size: .82rem; color: var(--accent-dark); font-weight: 700; }

/* Full-bleed scenic header. All title and controls remain real HTML. */
body {
  background-image: none !important;
}
body .hero-header {
  position: relative !important;
  inset: auto !important;
  width: 100%; height: auto;
  margin: 0;
  border-bottom: 3px solid #dda43c;
  background: #fff7e9;
}
body .hero-header .brand-wrap { display: block; height: auto; background: none; }
body .hero-header .decorated-banner { display: block; width: 100%; height: auto; }
/* Keep Home's full image; cap the artwork on Setup and the game board. */
body:has(#welcomeScreen.hidden) .hero-header .decorated-banner {
  max-height: 250px;
  object-fit: cover;
  object-position: center 30%;
}
body .hero-header .brand-copy { position: static; transform: none; width: 100%; margin: 0; text-align: center; }
body .hero-header .brand-copy h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
body .hero-header .theme-title {
  margin: 0; padding: 6px 12px; color: #731e14 !important;
  background: #fff5e5 !important; border: 0 !important; border-radius: 0;
  box-shadow: none !important; font-size: .95rem; line-height: 1.2;
  text-shadow: none !important;
}
body:has(#welcomeScreen:not(.hidden)) .brand-copy { display: none; }
body .hero-header .hero-controls {
  position: static !important;
  inset: auto !important;
  display: flex !important; flex-wrap: wrap;
  justify-content: center;
  width: 100% !important; max-width: 100%;
  padding: 8px 12px; gap: 8px !important;
  background: linear-gradient(#fff9ee, #ffefda);
}
body .hero-header .hero-controls .ghost {
  position: static !important;
  width: auto; min-width: 120px;
  min-height: 34px !important;
  padding: .38rem .85rem !important;
  font-size: .8rem !important;
  background: #fffaf1 !important; color: #731e14 !important;
  border: 1px solid #d9a46a !important;
  box-shadow: 0 2px 3px rgba(83,35,14,.08) !important;
}
body .app-shell { padding-top: 14px; padding-bottom: 8px; }
@media (max-width: 700px) {
  body .hero-header .hero-controls { flex-wrap: nowrap; gap: 5px !important; padding: 7px 6px; }
  body .hero-header .hero-controls .ghost { flex: 1; min-width: 0; padding: .35rem .3rem !important; font-size: .7rem !important; }
  .welcome-page { padding: 16px 14px; }
  .welcome-subjects { gap: 7px; }
  .welcome-subject { padding: 10px 5px; }
  .welcome-subject > span { font-size: 1.1rem; }
  .welcome-subject h3 { font-size: .85rem; }
  .welcome-subject p { font-size: .77rem; }
  .welcome-actions { gap: 8px; }
  .welcome-actions button { padding: .6rem .85rem; font-size: .88rem; }
  body:has(#welcomeScreen:not(.hidden)) .footer-row { flex-wrap: nowrap; gap: 4px; }
  body:has(#welcomeScreen:not(.hidden)) .teacher-paw { flex: 0 0 30px; width: 30px; height: 32px; }
  body:has(#welcomeScreen:not(.hidden)) .teacher-paw .gold-paw-icon { width: 28px; height: 28px; }
  body:has(#welcomeScreen:not(.hidden)) .game-copyright { flex: 1; min-width: 0; font-size: .66rem; padding: 6px; }
  body:has(#welcomeScreen:not(.hidden)) .copyright-star { display: none; }
}
@media (max-height: 600px) {
  .welcome-page { padding: 14px 22px; }
  .welcome-subject { padding: 9px 10px; }
  .welcome-intro { margin-bottom: 10px; }
  .welcome-actions { margin: 12px 0 8px; }
  .welcome-credit { margin-top: 8px; }
}

@media (max-height: 750px) and (min-width: 701px) {
  .welcome-page { padding: 12px 20px; }
  .welcome-page h2 { font-size: 1.5rem; margin-bottom: 6px; }
  .welcome-eyebrow { margin-bottom: 5px; }
  .welcome-intro { font-size: .9rem; line-height: 1.3; margin-bottom: 10px; }
  .welcome-subject { padding: 8px 10px; }
  .welcome-subject > span { display: none; }
  .welcome-actions { margin: 12px 0 8px; }
  .welcome-credit { margin-top: 8px; }
}
@media (max-height: 700px) and (min-width: 701px) {
  .welcome-eyebrow, .welcome-intro, .welcome-support { display: none; }
  .welcome-subject p { display: none; }
  .welcome-page h2 { font-size: 1.35rem; margin-bottom: 8px; }
  .welcome-subject h3 { margin: 0; font-size: .92rem; }
  .welcome-actions { margin: 10px 0 0; }
  .welcome-actions button { min-height: 38px; padding: .5rem 1rem; }
}
@media (max-height: 550px) and (min-width: 701px) {
  .welcome-subjects { display: none; }
  .welcome-page { padding: 8px 16px; }
  .welcome-page h2 { font-size: 1.2rem; margin-bottom: 0; }
  .welcome-actions { margin-top: 6px; }
  .welcome-credit { margin-top: 5px; font-size: .75rem; }
}
