/* Number Meadow screens (art spec 4 and 10): title, story card, World Complete, the check intro and end
   cards, the players screen and the rest card (the Grown-ups screens are in adults.css). */

/* Title */
.title-screen { align-items: center; justify-content: space-evenly; text-align: center; padding-top: 1rem; padding-bottom: 1rem; }
.game-name { margin-top: 0.7rem; font-size: clamp(2rem, 11vw, var(--fs-2xl)); font-weight: var(--fw-strong); line-height: var(--lh-tight); color: var(--ink); }
.title-art { display: flex; align-items: flex-end; justify-content: center; }
.title-buddy { width: min(9rem, 28vh); height: min(9rem, 28vh); }
.play-btn { min-width: 12rem; min-height: 5rem; font-size: 2.2rem; }
.play-btn svg { width: 2.4rem; height: 2.4rem; }

/* Story card and the check intro and end cards */
.story-card {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly;
  gap: 0.6rem; margin-top: 0.2rem; margin-bottom: 0.4rem; padding: 1.1rem 0.8rem 0.9rem; text-align: center;
}
.banner[class*="world-"] { border-color: var(--wcd); }
.banner .tile-glyph { position: relative; flex: none; width: 2.6rem; height: 2.6rem; }
.banner .tile-symbol {
  flex: none; display: flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem;
  font-size: 1.6rem; line-height: 1; font-weight: var(--fw-strong);
}
.banner .tile-symbol svg { width: 1.8rem; height: 1.8rem; }
.banner-name { font-size: var(--fs-l); font-weight: var(--fw-strong); line-height: var(--lh-tight); }
.check-banner { border-color: var(--pick-deep); }
.story-art { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; }
.story-buddy { width: min(7rem, 19vh); height: min(7rem, 19vh); }
.story-text { font-size: 1.45rem; line-height: 1.25; max-width: 30rem; }
.go-btn { min-width: 10rem; font-size: var(--fs-xl); }

/* World Complete (step 4): a calm card: the buddy, the heading, one sentence about what the child did, the scene line, three buttons */
.complete-screen { align-items: center; justify-content: center; gap: 0.3rem; text-align: center; overflow: hidden; }
.win-buddy { width: min(8rem, 19vh); height: min(8rem, 19vh); }
.win-title { font-size: 2.1rem; font-weight: var(--fw-strong); line-height: var(--lh-tight); }
.win-effort { margin: 0; max-width: 30rem; font-size: 1.4rem; font-weight: var(--fw-strong); line-height: 1.25; }
.win-line, .master-line, .rest-line { max-width: 30rem; font-size: 1.25rem; line-height: 1.25; }
.master-line {
  padding: 0.2rem 0.6rem; font-weight: var(--fw-strong); color: var(--ink);
  background: var(--paper); border: 2px solid var(--rose-deep); border-radius: var(--r-md);
}
.rest-line { padding: 0.2rem 0.6rem; background: var(--paper); border: 2px solid var(--edge); border-radius: var(--r-md); }
.win-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); width: 100%; max-width: 30rem; margin-top: 0.3rem; }
/* Two buttons share a row when there is room (>= 2 x 9.5rem), otherwise each gets its own row. */
.win-buttons .big-btn { flex: 1 1 9.5rem; gap: 0.3rem; min-height: max(var(--tap-min), 4rem); padding: 0.3rem 0.4rem; font-size: 1.3rem; white-space: nowrap; }
.win-buttons .big-btn svg { width: 1.6rem; height: 1.6rem; }
.win-buttons .wide { flex-basis: 100%; }

/* Players */
.player-card .buddy-name { overflow-wrap: anywhere; }
/* The rest card (step 3, brief D-B): one calm line and two buttons of the same size, fill and weight. */
.rest-text { font-size: var(--fs-l); font-weight: var(--fw-strong); line-height: var(--lh-tight); text-align: center; }
.rest-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); width: 100%; }
.next-box .rest-buttons .rest-btn { width: 100%; min-height: 4.6rem; padding: 0.3rem 0.4rem; gap: 0.3rem; font-size: 1.3rem; }
.rest-btn svg { width: 1.6rem; height: 1.6rem; }