/* Pocket Grove 6.6.0: pictures before words. Loaded last so these win. */

/* A currency is always its painted icon and a number. */
.amount{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;vertical-align:middle;font-weight:800;line-height:1}
.amount>svg,.amount>img{flex:none;display:block}
.amount b{font-weight:800;font-variant-numeric:tabular-nums}
.amount+.amount{margin-left:10px}
.collection-balance .amount{font-size:16px;color:#57305f}
.collection-balance .amount>svg{width:20px;height:20px}
button .amount{color:inherit}
.amount-gold>svg,.amount-gold>img,.amount-gold>.gem-art{width:30px;height:30px}

/* Titles: big, centred, impossible to skip. */
.modal .intro-title,.modal .results h2,.modal .results>h2#modal-title{display:block;width:100%;margin:2px 0 10px;padding:0 52px;text-align:center;font-size:clamp(24px,7vw,32px);line-height:1.12;font-weight:800;color:#56205f;letter-spacing:0;text-wrap:balance}
.modal .results{text-align:center}
/* Under a picture the title has the full width; only a title on the top line makes room for the close button. */
.modal .results>h2:not(:first-child),.modal .results>h2#modal-title:not(:first-child){padding:0 4px}
.modal .results .button-row{justify-content:center}

/* Picture cards: one picture, one bold line, one short line. */
.piece-symbols.intro-cards{display:grid;grid-template-columns:1fr;gap:9px;margin:4px 0 14px}
.piece-symbols.intro-cards>section{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;padding:11px 13px;text-align:left;background:#f6efe1;border:1px solid #e0d1bc;border-radius:17px}
.piece-symbols.intro-cards>section:last-child{background:#f6efe1;border-color:#e0d1bc}
.piece-symbols.intro-cards .symbol-example{position:relative;flex:none;width:74px;height:74px;display:grid;place-items:center}
.piece-symbols.intro-cards .symbol-example>svg,.piece-symbols.intro-cards .symbol-example>img,.piece-symbols.intro-cards .symbol-example>.gem-art{width:100%;height:100%}
.piece-symbols.intro-cards .symbol-example .special-badge{width:52%;left:0;bottom:0}
.piece-symbols.intro-cards h3{margin:0 0 3px;font-size:18px;line-height:1.2;font-weight:800;color:#56205f}
.piece-symbols.intro-cards p{margin:0;font-size:15px;line-height:1.3;color:#5f4763}
.intro-screen .primary-button{display:block;width:100%;min-height:50px;font-size:18px}
.booster-example>svg,.booster-example>.icon{width:64px;height:64px}
.booster-intro .piece-symbols.intro-cards>section{background:#eef6dc;border-color:#c5d7a3}
.crate-example{display:grid;place-items:center;width:100%;height:100%}
.crate-example>svg,.crate-example>img{width:100%;height:100%}
.gap-demo{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;width:66px;height:66px}
.gap-demo i{display:block;border-radius:6px;background:linear-gradient(#fff9e8,#ead9b8);border:1px solid #d6bf95}
.gap-demo i.gap{background:#5d4a66;border-color:#3e2d49;box-shadow:inset 0 2px 4px #0006}

/* Symbols on the board: large enough to read at a glance. */
.tile .special-badge{width:clamp(18px,44%,30px);left:1px;bottom:1px;border-width:2px}
.tile .special-badge svg{width:78%;height:78%;stroke-width:3}

/* Goal chips: the badge sits inside its own container. */
.goal-badge{position:relative;display:grid;place-items:center;flex:none;width:28px;height:28px}
.goal-badge .special-badge{position:static;width:26px}
.goal-badge .special-badge svg{width:78%;height:78%}
.obstacle-goal.special-goal,.obstacle-goal.spirit-goal{display:grid;grid-template-columns:auto auto;align-items:center;justify-content:start;gap:0 6px;min-width:0;max-width:100%;padding:4px 8px;border:1px solid #cdb2dd;border-radius:12px;overflow:hidden}
.obstacle-goal.spirit-goal{border-color:#d7b879}
.obstacle-goal.special-goal>.goal-badge,.obstacle-goal.spirit-goal>svg,.obstacle-goal.spirit-goal>img{grid-column:1;grid-row:1/3}
.obstacle-goal.special-goal>span:not(.goal-badge),.obstacle-goal.spirit-goal>span{grid-column:2;grid-row:1}
.obstacle-goal.special-goal>span:not(.goal-badge),.obstacle-goal.spirit-goal>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.15}

/* Win screen: what you won, as pictures. */
.win-results .win-meet{margin:6px 0 2px;font-size:17px;color:#56205f}
.win-rewards{display:grid;grid-template-columns:repeat(auto-fit,minmax(86px,1fr));gap:9px;margin:12px 0}
.win-rewards>.amount{flex-direction:column;justify-content:center;gap:6px;min-height:92px;margin:0;padding:10px 6px;background:#fbf3df;border:2px solid #ecd9ad;border-radius:18px;color:#56205f;font-size:22px}
.win-rewards>.amount>svg,.win-rewards>.amount>img{width:44px;height:44px}
.win-rewards>.amount-essence{background:#f1eafb;border-color:#d6c4ea}
.win-rewards>.amount-gold{background:#fff6d2;border-color:#e9c96a}
.win-rewards>.amount-gold>svg,.win-rewards>.amount-gold>img,.win-rewards>.amount-gold>.gem-art{width:44px;height:44px}
.win-points{margin:4px 0 10px;font-size:14px;color:#6a526b}
.win-score{margin:4px 0 10px}.win-score .win-points{margin:0;line-height:1.35}.win-score .win-spare b:last-child{color:#2f7a3d}.win-score .win-next{font-size:13px}.win-score .win-total b{font-size:1.15em}
/* Moves left are counted into points after a win: the two counters pop on every move. */
@keyframes count-bump{0%{transform:scale(1)}40%{transform:scale(1.16)}100%{transform:scale(1)}}
.count-bump{animation:count-bump .14s ease-out}#score-value.count-bump{transform-origin:right center}body.counting-moves .moves-stat strong{color:#c2410c}
/* Nothing can be tapped during the 2 seconds of the count, so no other card opens under the win card. */
body.counting-moves{pointer-events:none}
@media (prefers-reduced-motion:reduce){.count-bump{animation:none}}
.rank-reward{display:flex;align-items:center;justify-content:center;gap:10px;margin:8px 0;padding:8px 12px;background:#eef6dc;border:1px solid #c5d7a3;border-radius:15px;font-weight:800;color:#3f5d24}
.rank-reward>svg,.rank-reward>img{width:38px;height:38px;flex:none}

/* Hearts. */
.hearts-big{margin:10px 0 6px;text-align:center}
.hearts-big .amount{font-size:40px;color:#b7273f;gap:10px}
.hearts-big .amount>svg{width:54px;height:54px}
.store-hearts{margin:14px 0 8px;text-align:center}
.store-hearts .amount{font-size:22px;color:#b7273f}
.store-hearts .amount>svg{width:28px;height:28px}
.store-refill{display:flex;align-items:center;justify-content:center;gap:8px;font-size:17px}

/* Level 2: pick a friend by picture. */
.friend-picks{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:6px 0 4px}
.friend-pick{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:12px 8px 11px;background:linear-gradient(#fffaf0,#f4e8d2);border:2px solid #dcc59d;border-radius:20px;box-shadow:0 3px 0 #cbb287;color:#56205f;font:inherit;cursor:pointer}
.friend-pick:active{transform:translateY(2px);box-shadow:0 1px 0 #cbb287}
.friend-pick>svg,.friend-pick>img,.friend-pick>.gem-art{width:min(100%,104px);height:auto;aspect-ratio:1}
.friend-pick>b{font-size:20px;line-height:1.1}
.friend-pick-cost{display:flex;align-items:center;justify-content:center;gap:10px;font-size:16px}
.friend-pick-cost .amount{margin:0}

/* Power-ups: locked ones are a silhouette and the level that opens them. */
.booster.booster-locked{background:linear-gradient(#dfe6d2,#c3cfb2);border-color:#eef1e2;box-shadow:inset 0 0 0 2px #cfd8bf,0 3px 0 #9aa687;color:#4d5a40;text-shadow:none;cursor:default}
.booster.booster-locked .booster-art>svg,.booster-shop-locked .booster-shop-art>svg,.mystery-form>svg,.mystery-form>img,.mystery-form>.gem-art{filter:brightness(0) opacity(.42)}
.booster.booster-locked>span:last-child{font-size:13px;font-weight:800}

/* Shop: icons centred in their boxes. */
.earned-booster-grid>section{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 7px}
.booster-shop-art{display:grid;place-items:center;width:64px;height:64px;margin:0 auto;border-radius:18px;background:radial-gradient(circle at 50% 38%,#ffffff,#e2edc8)}
.booster-shop-art>svg{display:block;width:46px;height:46px;margin:auto}
.earned-booster-grid h3{margin:0;font-size:15px}
.earned-booster-grid p{margin:0;font-size:15px;font-weight:800;color:#56205f}
.earned-booster-grid>section>button{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:6px 4px;font-size:16px}
.earned-booster-grid>section.booster-shop-locked{background:#eceae4;border-color:#d5d0c6;justify-content:center}
.earned-booster-grid>section.booster-shop-locked p{color:#6b6170}

/* Mystery forms stay a silhouette until they are earned. */
.mystery-form{position:relative}
.mystery-form>b{font-size:22px;letter-spacing:2px;color:#56205f}
.evolution-forms>.mystery-form{background:#ece6f1;border-color:#d1c3dc}

/* A two-way choice shows both options; the chosen one is filled. */
.bond-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.bond-choice>button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:46px;font-size:15px}
.bond-choice>button>svg,.bond-choice>button>img{width:26px;height:26px;flex:none}
.bond-choice>button[aria-pressed=true]{box-shadow:0 0 0 3px #f4d77a}
.bond-mode-note{margin:10px 0 6px;font-size:14px;font-weight:700;color:#56205f}
.rank-next .amount{margin-left:6px;font-size:14px}
.rank-next .amount>svg{width:16px;height:16px}

/* Out of moves. */
.rescue-plus{display:inline-flex;align-items:center;justify-content:center;gap:3px;font-weight:800}
.rescue-plus>svg{width:26px;height:26px}
.rescue-options small .amount{font-size:14px}

/* Every simple dialog: the title is centred and clear of the close button. */
.modal:not(.store-screen):not(.collection-screen):not(.piece-screen)>h2#modal-title{padding:0 46px;text-align:center;font-weight:800}
.rescue-options[hidden]{display:none}
.friend-pick-gain{display:block;white-space:nowrap;font-size:15px;font-weight:800;color:#3f5d24;background:#eef6dc;border:1px solid #c5d7a3;border-radius:999px;padding:3px 10px}
.friend-pick-note{margin:10px 0 0;text-align:center;font-size:15px;color:#5f4763}

/* Feedback after a purchase is read where the player is looking. */
#toast.in-modal,#toast.in-modal.show{top:12px;left:50%;right:auto;bottom:auto;width:max-content;transform:translate(-50%,0);max-width:min(calc(100vw - 128px),300px);padding:10px 14px;font-size:15px;line-height:1.25;font-weight:800;text-align:center;border-radius:18px;z-index:400}

/* Hints during play sit above the power-ups, never over the level title or the wallet. */
@media(max-width:900px) and (min-height:600px){body.playing .toast:not(.in-modal){top:auto;bottom:calc(84px + env(safe-area-inset-bottom));white-space:nowrap;max-width:calc(100vw - 24px);font-size:15px;font-weight:700;text-align:center}}

/* Pieces fall in from above the board; nothing is drawn above its top edge while they do. */
.board.board-falling,#board.board-falling{clip-path:inset(0 -12px -12px -12px)}

@media(max-width:359px){
 .modal .results .button-row>*{flex-basis:100px}
 .friend-pick-gain{font-size:13px;padding:3px 7px}
 .piece-symbols.intro-cards .symbol-example{width:60px;height:60px}
 .piece-symbols.intro-cards h3{font-size:16px}
 .piece-symbols.intro-cards p{font-size:14px}
 .win-rewards>.amount{min-height:80px;font-size:19px}
 .friend-pick>b{font-size:18px}
 .earned-booster-grid>section>button{font-size:14px}
 .booster-shop-art{width:54px;height:54px}
}
@media(max-height:620px){
 .piece-symbols.intro-cards .symbol-example{width:56px;height:56px}
 .piece-symbols.intro-cards>section{padding:8px 11px}
 .win-rewards>.amount{min-height:74px;padding:7px 5px}
 .win-rewards>.amount>svg,.win-rewards>.amount>img{width:36px;height:36px}
 .hearts-big .amount{font-size:32px}.hearts-big .amount>svg{width:42px;height:42px}
}
/* Coin packs and invites show the coin icon, not the word. */
.coin-pack:not(.starter) .pack-amount{margin-bottom:7px}.coin-pack .pack-amount .amount,.pack-chips .amount,.invite-card .amount,.settings-invite .amount,.subcopy .amount{display:inline-flex;align-items:center;gap:3px;vertical-align:middle}.pack-boosters{display:inline-flex;align-items:center;gap:2px}.pack-boosters b{margin-left:3px}

/* Audit: no text under 12px, and the strip under the board is a full-size tap target on tall phones. */
@media(max-width:900px){.brand small{font-size:12px;letter-spacing:.8px;margin-top:2px}}
@media(max-width:900px) and (min-height:600px){.pip-strip-button{min-height:44px}}

/* Reviewer round 1: bigger board badges, wallet in Pause, one-picture Grow card, amounts never split from their icon. */
.tile .special-badge{width:clamp(24px,64%,40px)}
.amount{white-space:nowrap}
.pause-wallet{display:flex;justify-content:center;gap:20px;margin:2px 0 12px;font-size:19px;font-weight:800;color:#56205f}
.friend-picks.solo{grid-template-columns:1fr}
.friend-picks.solo .friend-pick{cursor:default;box-shadow:none}
.intro-screen .button-row .amount{display:inline-flex;align-items:center;gap:3px;vertical-align:middle;margin-left:5px}
.booster-shop-art{position:relative}
.booster-shop-count{position:absolute;top:-7px;right:-9px;min-width:24px;height:24px;padding:0 5px;display:grid;place-items:center;border-radius:999px;border:2px solid #d3b28d;background:linear-gradient(#fffef6,#ffefd5);color:#53285e;font:800 14px/1 Outfit,sans-serif}
.invite-card span{white-space:normal}
/* A hint during play takes the place of the strip and note under the board for its three seconds; it never sits on top of them. */
body.playing .evolution-strip,body.playing #game-note{transition:opacity .15s}
body.playing:has(.toast.show:not(.in-modal)) :is(.evolution-strip,#game-note){opacity:0;pointer-events:none}
/* The hint fades in where it will sit; it never slides across the power-ups. */
@media(max-width:900px) and (min-height:600px){body.playing .toast:not(.in-modal),body.playing .toast.show:not(.in-modal){transform:translate(-50%,0)}}
/* Every dialog title is centred and the largest text on its panel, like the first-time cards (Jest: "the title is so tiny I skipped over it... also not centered"). */
.modal h2#modal-title:not(.intro-title){display:block;text-align:center;font-size:clamp(22px,6.4vw,28px);line-height:1.15;padding:0 46px;text-wrap:balance}
.modal .modal-eyebrow{text-align:center;padding:0 46px}
.modal .collection-title-row{position:relative;display:block}
.modal .collection-title-row h2#modal-title{padding:0 46px}
.modal .collection-title-row .text-button{display:block;margin:4px auto 0;min-width:88px;min-height:44px;padding-inline:16px}
/* A hint left over from play never floats on top of a dialog that opened after it. */
body:has(#modal-root>*) .toast:not(.in-modal){opacity:0!important;pointer-events:none}
/* On short phones the hint sits at the top: the level name steps aside for it. */
#level-title{transition:opacity .15s}
@media(max-width:340px){.modal .modal-eyebrow{padding:0 40px;letter-spacing:.04em}}

/* Review round 3 (24 Nov 2026). */
/* The label over a fired piece never runs wider than the board (it used to widen the page on a long chain). */
.combo-label{left:4px;right:4px;overflow-wrap:anywhere;font-size:clamp(20px,6vw,34px);line-height:1.15}
html{overflow-x:clip}
/* On short phones a hint sits above the power-ups too, never over the level bar or the goals. */
@media(max-width:900px) and (max-height:599px){body.playing .toast:not(.in-modal),body.playing .toast.show:not(.in-modal){top:auto;bottom:calc(60px + env(safe-area-inset-bottom));transform:translate(-50%,0);white-space:nowrap;max-width:calc(100vw - 16px);padding:8px 14px;font-size:13px;font-weight:700;text-align:center}}
/* The win card names each reward once, under its picture. */
.win-results .win-rewards>.amount::after{font:700 12px/1.2 "DM Sans",sans-serif;color:#5f4763;letter-spacing:.01em}
.win-results .win-rewards>.amount-coin::after{content:"Coins"}
.win-results .win-rewards>.amount-essence::after{content:"Stardust"}
.win-results .win-rewards>.amount-gold::after{content:"Gold matched"}
.gift-rewards{grid-template-columns:repeat(auto-fit,minmax(86px,140px));justify-content:center}
/* Grow: the word, then the price underneath as one line. */
.grow-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;line-height:1.1}
.grow-button .grow-cost{display:flex;align-items:center;gap:12px;font-size:15px;white-space:nowrap}
.grow-button .grow-cost .amount{margin:0}
/* Hearts and coins on the pause card are buttons. */
.pause-wallet>button{display:inline-flex;align-items:center;justify-content:center;min-width:88px;min-height:44px;padding:4px 14px;border:2px solid #e6d7f0;border-radius:999px;background:#fffaf0;color:inherit;font:inherit;cursor:pointer}
.pause-wallet{gap:12px}
/* "Titles" on the collection reads as a button. */
.modal .collection-title-row .text-button{border:2px solid #cbb6e0;border-radius:999px;background:#f3ebfb;color:#4d2a66;font-weight:800;text-decoration:none}
/* The win card never scrolls on a small phone: three rewards in one row, smaller picture. */
@media(max-width:359px){.win-results .win-rewards{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.win-results .win-rewards>.amount{min-height:0;padding:6px 2px;font-size:17px}.win-results .win-rewards>.amount-gold::after{content:"Gold"}}
@media(max-height:620px){.win-results .results-art{width:84px;height:78px}.win-results .win-rewards{margin:8px 0}.win-results .win-points{margin:0;font-size:13px}.win-results .win-score{margin:2px 0 6px}}
.reward-summary:empty{display:none}
/* Focus outlines only while the keyboard is in use (html.kbd is set by Tab or an arrow key, cleared by a tap). */
html:not(.kbd) :focus-visible,html:not(.kbd) .tile:focus-visible{outline:none}
/* Stars are the painted star piece. */
.result-stars{display:flex;justify-content:center;gap:8px;font-size:0;letter-spacing:0}
.result-star{display:block;width:46px;height:46px}.result-star>svg,.result-star>img,.result-star>.gem-art{width:100%;height:100%;display:block}
.result-star.off{filter:grayscale(1) opacity(.3)}
.trail-stars{display:inline-flex;gap:2px;vertical-align:middle}.trail-stars .result-star{width:15px;height:15px}
@media(max-height:620px){.win-results .result-star{width:36px;height:36px}}
/* Goals sit two across on a small phone so the board keeps its size (four stacked goals shrank level 11 to 27 px cells). */
@media(max-width:359px),(max-width:900px) and (max-height:700px){
.goals-content{display:grid;grid-template-columns:repeat(2,auto);justify-content:space-evenly;gap:4px 6px;align-items:center;justify-items:center}
.goals-content:has(.obstacle-goals:empty){grid-template-columns:auto}
.obstacle-goals>:last-child:nth-child(even){grid-column:1/-1}
}
@media(max-width:359px){
.goals-content .goal-stat{grid-template-columns:24px auto}.goals-content .goal-stat #goal-icon{width:24px;height:24px}
.goals-content .goal-stat>span,.goals-content .obstacle-goal>span:not(.goal-badge){font-size:12px;line-height:1.2;white-space:nowrap}
.goals-content .goal-stat strong,.goals-content .obstacle-goal strong{font-size:15px;line-height:1.15}
.goals-content .obstacle-goal{grid-template-columns:24px auto;padding:0 0 0 2px}.goals-content .obstacle-goal.special-goal{padding:2px 5px}
.goals-content .obstacle-goal>svg,.goals-content .obstacle-goal>img,.goals-content .obstacle-goal>.goal-badge{width:24px;height:24px}
/* On the narrowest phones a long goal name wraps onto a second line; it is never cut off. */
@media (max-width:340px){.goals-content .obstacle-goal.special-goal>span:not(.goal-badge),.goals-content .obstacle-goal.spirit-goal>span:not(.goal-badge){white-space:normal;text-overflow:clip}}
}
/* A play message is placed by placeToast() in app.js: in the gap under the board when it fits, else on the star meter. Never on the board. */
.toast.on-meter,body.playing .toast.on-meter,body.playing .toast.on-meter.show{bottom:auto}
/* A play message is as wide as its words, up to the screen, and wraps instead of running off the edge. */
@media(max-width:900px){body.playing .toast:not(.in-modal),body.playing .toast.show:not(.in-modal){left:8px;right:8px;width:fit-content;max-width:none;margin-inline:auto;transform:none;white-space:normal;text-wrap:balance}}
/* On the star meter the message is smaller, so it stays off the goals above and the board below. */
body.playing .toast.on-meter.compact,body.playing .toast.on-meter.compact.show{padding:6px 12px;font-size:13px;line-height:1.25}
/* The star meter uses the painted star piece, not a glyph (set once in updateHud). */
.score-emblem[data-art]{display:block;width:26px;height:26px;font-size:0;line-height:0;text-shadow:none}
.score-track .track-star[data-art]{width:18px;height:18px;top:-4px;font-size:0;line-height:0;text-shadow:none;filter:grayscale(1) opacity(.6)}
.score-track .track-star[data-art].lit{filter:none}
.score-emblem[data-art]>*,.track-star[data-art]>*{width:100%;height:100%;display:block}
/* The last meter star keeps clear of the score number beside it. */
.score-stat .score-track{margin-right:8px}
/* On the shortest phones the win card must fit without a scroll, also with the rank-up row and the Share button: title on one line, smaller piece. */
@media(max-height:600px){.modal .results.win-results>h2#modal-title{padding:0;margin:0 0 4px;font-size:clamp(20px,7vw,24px);white-space:nowrap}.win-results .results-art{width:60px;height:56px}.win-results .result-star{width:32px;height:32px}.win-results .win-rewards>.amount>svg,.win-results .win-rewards>.amount>img,.win-results .win-rewards>.amount>.gem-art{width:32px;height:32px}}
/* On the narrowest phones the two win-card buttons keep their label on one line ("Play level 2" left a lone digit on a second line). */
@media(max-width:359px){.win-results .button-row>button:not(.share-win-button){white-space:nowrap;padding-left:6px;padding-right:6px}}
/* Narrowest phones: the message over an open card stops short of the card's close button, and the Starter Pack row keeps its "x3" clear of the price. */
@media(max-width:359px){#toast.in-modal,#toast.in-modal.show{max-width:calc(100vw - 152px);font-size:14px;padding:8px 12px}.coin-pack.starter{gap:6px;padding-left:8px;padding-right:8px}.coin-pack.starter .pack-art{width:50px;height:50px}.coin-pack.starter .pack-price{min-width:68px;font-size:17px;padding-left:8px;padding-right:8px}.coin-pack.starter strong{font-size:17px}.coin-pack.starter .pack-chips>span{padding:3px 6px}}
/* Narrowest phones: the three coin packs keep their amount and bonus inside the card (the bonus sits on two lines on all three). */
@media(max-width:359px){.coin-pack:not(.starter) .pack-amount{font-size:15px}.coin-pack:not(.starter) .pack-bonus{white-space:normal;width:min-content;padding:3px 9px;line-height:1.15;border-radius:11px}}
/* Phones: the Starter Pack name stays on one line. */
@media(max-width:480px){.coin-pack.starter strong{font-size:17px;white-space:nowrap}}
/* No text under 12 px: the label over a character name and the "ready" tag were 11 px. */
.modal .piece-kicker,.modal .ready-label{font-size:12px}
/* Tap targets on phones are 44 px or more (Build Book §0): piece-panel tabs, its Collection link and its pane buttons were 34 to 40 px. */
@media(max-width:599px){.piece-screen .piece-tabs>button,.piece-screen .piece-toolbar .text-button,.piece-screen .piece-pane>.secondary-button,.piece-screen .piece-pane-footer>.primary-button,.piece-screen .look-actions>button{min-height:44px}}
@media(max-width:599px) and (max-height:650px){.piece-screen .piece-tabs{margin:3px 0}.piece-screen .piece-identity{margin-bottom:2px}.piece-screen .looks-footer>button{min-height:44px}}

/* Pip evolved: a card of its own (owner, 25 Nov 2026). The new form is the picture; the glow and the pop are the party. */
.evolve-party{text-align:center}
.evolve-hero{position:relative;width:min(56vw,200px);aspect-ratio:1;margin:2px auto 4px;display:grid;place-items:center}
.evolve-hero::before{content:"";position:absolute;inset:-10%;border-radius:50%;background:radial-gradient(circle,#fffbe0 0,#ffe89a 36%,rgba(255,232,154,0) 70%);animation:evolve-glow 2.4s ease-in-out infinite}
.evolve-hero>*{position:relative;width:100%;height:100%;animation:evolve-pop .7s cubic-bezier(.2,1.5,.4,1) both}
.evolve-party .evolve-name{margin:0 0 10px;font:800 22px/1.2 "Outfit",sans-serif;color:#56205f}
.evolve-party .piece-symbols.intro-cards{margin-bottom:12px}
@keyframes evolve-pop{0%{transform:scale(.2) rotate(-12deg);opacity:0}100%{transform:none;opacity:1}}
@keyframes evolve-glow{50%{transform:scale(1.12);opacity:.7}}
@media(max-height:620px){.evolve-hero{width:min(38vw,124px)}.evolve-party .evolve-name{font-size:19px;margin-bottom:6px}}
@media(prefers-reduced-motion:reduce){.evolve-hero::before,.evolve-hero>*{animation:none}}
