/* Simpler concept-style framing. Keep semantic content and existing handlers. */
.sr-goal-screen.sg-polished{border:3px solid #b8834d!important;border-radius:30px!important;background:linear-gradient(145deg,#fffdf0,#fff1cf)!important;padding:10px 15px 17px!important;box-shadow:inset 0 0 0 3px #fff9e5,inset 0 -3px 0 #dec29a,0 12px 26px #22102b44!important;overflow:hidden}
.sr-goal-screen.sg-polished:before{display:none}
.sr-goal-screen.sg-polished .sg-header{background:none;min-height:0;margin:0;padding:3px 44px 13px;max-width:none;box-sizing:border-box}
.sr-goal-screen.sg-polished .sr-ribbon{position:static;display:table;width:auto;height:auto;max-width:100%;margin:0 auto 9px!important;padding:6px 14px!important;border:1px solid #d7a565;border-radius:22px;background:linear-gradient(#fff9e5,#ffe7ba);box-shadow:inset 0 0 0 2px #fff9e5,0 2px 0 #d6ac73;font-size:12px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
.sr-goal-screen.sg-polished h1{font-size:34px!important;line-height:1.1;text-shadow:none}
.sr-goal-screen.sg-polished .sr-world{font-size:12px!important;line-height:1.25;margin-top:5px!important}
.sr-goal-screen.sg-polished .sr-close{top:4px;right:0;width:44px;height:44px;border:2px solid #b88952;background:#fff2d4;box-shadow:inset 0 0 0 2px #fff9e8,0 2px 0 #c29868;font-size:31px}
.sr-goal-screen.sg-polished .sr-hero{overflow:hidden}
.sr-goal-screen.sg-polished #goalInfoBack,.sg-results #wpwRetry{min-height:55px;border:2px solid #719a43!important;border-radius:28px!important;background:linear-gradient(#cdf494,#a4dc6b)!important;background-image:linear-gradient(#cdf494,#a4dc6b)!important;box-shadow:inset 0 0 0 2px #e7ffc0,0 3px 0 #72974b!important;padding:11px 20px!important;font-size:22px!important;line-height:1.15!important;color:#275915!important;text-shadow:none;margin-top:8px}
.sg-results #wpwFailHome{min-height:48px;border:2px solid #927c63!important;border-radius:20px!important;background:linear-gradient(#e6f1ff,#c7ddf8)!important;background-image:linear-gradient(#e6f1ff,#c7ddf8)!important;box-shadow:inset 0 0 0 2px #f4f9ff,0 2px 0 #a18b72!important;padding:10px 20px!important;font-size:18px!important;line-height:1.15!important;color:#284d7a!important;margin-top:0}
.sg-results .sr-actions{gap:10px;margin-top:5px;padding:0 4px 4px}.sg-results .sr-actions svg{width:23px;height:23px}
.sr-goal-screen.sg-polished #goalInfoBack:disabled,.sg-results .sr-actions button:disabled{opacity:.58;cursor:wait}
@media(hover:hover){.sr-goal-screen.sg-polished #goalInfoBack:hover:not(:disabled),.sg-results .sr-actions button:hover:not(:disabled){filter:brightness(1.04)}}
@media(max-width:350px){.sr-goal-screen.sg-polished{padding:8px 11px 14px!important;border-radius:26px!important}.sr-goal-screen.sg-polished .sg-header{padding:3px 42px 11px}.sr-goal-screen.sg-polished .sr-ribbon{padding:5px 8px!important;font-size:10px}.sr-goal-screen.sg-polished h1{font-size:29px!important}.sr-goal-screen.sg-polished .sr-world{font-size:11px!important}.sr-goal-screen.sg-polished #goalInfoBack,.sg-results #wpwRetry{min-height:52px;font-size:20px!important}.sg-results #wpwFailHome{font-size:17px!important}}
@media(max-height:480px){.sr-goal-screen.sg-polished .sg-header{padding-bottom:9px}.sr-goal-screen.sg-polished h1{font-size:29px!important}.sr-goal-screen.sg-polished .sr-ribbon{margin-bottom:5px!important}.sr-goal-screen.sg-polished #goalInfoBack{min-height:50px}}

/* Shared completion indicators: fixed status column and font-independent ticks. */
.sr-screen .sr-goal{grid-template-columns:39px minmax(0,1fr) 24px}
.sr-screen .sr-goal>.sr-check{box-sizing:border-box;width:24px;height:24px;min-width:24px;place-self:center;display:flex;align-items:center;justify-content:center;line-height:1;padding:0;position:relative}
.sr-screen .sr-goal.is-done>.sr-check{font-size:0}
.sr-screen .sr-goal.is-done>.sr-check:after{content:'';display:block;width:6px;height:11px;border:solid #50812d;border-width:0 3px 3px 0;transform:translateY(-1px) rotate(45deg)}
.sr-screen .sr-extra .sr-goal{grid-template-columns:24px minmax(0,1fr) 20px;padding:6px 2px}
.sr-screen .sr-extra .sr-goal>.sr-check{width:20px;height:20px;min-width:20px}
.sr-screen .sr-extra .sr-goal.is-done>.sr-check:after{width:5px;height:8px;border-width:0 2px 2px 0}
/* Match the clean Stage Goal silhouette, keeping content scrolling inside it. */
.sr-results.sg-results{border:3px solid #b8834d!important;border-image:none!important;border-radius:30px!important;clip-path:inset(0 round 30px);background:linear-gradient(145deg,#fffdf0,#fff1cf)!important;padding:12px 15px 17px!important;box-shadow:inset 0 0 0 3px #fff9e5,inset 0 -3px 0 #dec29a,0 12px 26px #22102b44!important}
.sg-results .sr-ribbon{display:table;width:auto;height:auto;max-width:90%;margin:0 auto 9px!important;padding:6px 14px!important;border:1px solid #d7a565;border-radius:22px;background:linear-gradient(#fff9e5,#ffe7ba);box-shadow:inset 0 0 0 2px #fff9e5;font-size:12px;line-height:1.2;overflow-wrap:anywhere}
.sg-results .sr-actions{padding:0 0 4px;gap:10px}
.sg-results .sr-verification p{overflow-wrap:anywhere;min-width:0}
.sg-results .rr-inline-check{display:none}
@media(max-width:350px){.sr-results.sg-results{border-width:3px!important;border-radius:26px!important;clip-path:inset(0 round 26px);padding:10px 11px 14px!important}.sg-results .sr-ribbon{height:auto;width:auto;font-size:11px}}

/* Non-Pal objectives have no target character: use a compact scenery caption,
   not a tiny fallback sparkle in a full-size portrait composition. */
.sr-goal-screen.sg-polished.sg-scenery-only .sr-hero{display:flex;align-items:center;justify-content:center;min-height:96px;padding:12px;border-radius:20px;box-sizing:border-box}
.sr-goal-screen.sg-polished.sg-scenery-only .sr-hero-copy{flex:0 1 auto;min-height:0;max-width:100%;padding:10px 18px;background:#fff7e9ed;border:1px solid #d9b67b;border-radius:16px;box-shadow:0 2px 6px #65402d24;text-align:center}
.sr-goal-screen.sg-polished.sg-scenery-only .sr-hero-copy:before{display:none}
.sr-goal-screen.sg-polished.sg-scenery-only .sr-hero-copy strong{font-size:19px;line-height:1.2}
.sr-goal-screen.sg-polished.sg-scenery-only .sr-hero-copy>span{font-size:12px;line-height:1.3;margin-top:4px}
@media(max-width:350px),(max-height:480px){.sr-goal-screen.sg-polished.sg-scenery-only .sr-hero{min-height:82px;padding:9px}.sr-goal-screen.sg-polished.sg-scenery-only .sr-hero-copy{padding:8px 12px}.sr-goal-screen.sg-polished.sg-scenery-only .sr-hero-copy strong{font-size:17px}}

.sr-goal-screen.sg-polished.sg-merge-challenge .sr-hero{display:grid;grid-template-columns:100px minmax(0,1fr);gap:9px;padding:8px 10px}
.sg-merge-art{position:relative;height:88px;width:100px;align-self:center;background:radial-gradient(ellipse,#fff4a3ab,transparent 68%)}
.sg-merge-art .sr-pal{position:absolute;width:72px;height:72px;bottom:3px;left:0;transform:rotate(-9deg)}
.sg-merge-art .sr-pal+ .sr-pal{left:30px;bottom:9px;transform:rotate(9deg)}
.sr-goal-screen.sg-polished.sg-merge-challenge .sr-hero-copy{padding:9px 10px}
.sr-goal-screen.sg-polished .sr-extra .sr-goal{grid-template-columns:25px minmax(0,1fr) 20px;gap:7px;padding:7px 5px;align-items:center}
.sr-goal-screen.sg-polished .sr-extra .sr-goal-icon,.sr-goal-screen.sg-polished .sr-extra .sr-goal-icon .sr-pal{width:25px;height:25px}
.sr-goal-screen.sg-polished .sr-extra .sr-goal-copy strong{line-height:1.25;overflow-wrap:anywhere}
@media(max-width:350px){.sr-goal-screen.sg-polished.sg-merge-challenge .sr-hero{grid-template-columns:84px minmax(0,1fr);gap:6px;padding:7px}.sg-merge-art{width:84px;height:76px}.sg-merge-art .sr-pal{width:62px;height:62px}.sg-merge-art .sr-pal+ .sr-pal{left:23px}.sr-goal-screen.sg-polished .sr-extra .sr-goal{grid-template-columns:21px minmax(0,1fr) 20px;gap:6px;padding:7px 3px}.sr-goal-screen.sg-polished .sr-extra .sr-goal-icon,.sr-goal-screen.sg-polished .sr-extra .sr-goal-icon .sr-pal{width:21px;height:21px}}

/* Give narrow screens readable optional objectives instead of word columns. */
@media(max-width:350px){.sr-goal-screen.sg-polished .sr-extras{grid-template-columns:1fr;gap:18px}.sr-goal-screen.sg-polished .sr-extra{padding:17px 7px 6px}.sr-goal-screen.sg-polished .sr-extra .sr-goal{grid-template-columns:25px minmax(0,1fr) 20px;gap:9px;min-height:40px}.sr-goal-screen.sg-polished .sr-extra .sr-goal-copy strong{font-size:12px}.sr-goal-screen.sg-polished .sr-extra h2 small{position:static;margin-left:6px;display:inline;color:inherit;font-size:7px}}

/* Results hero: canonical circular Pal and a calm, evenly inset caption plaque. */
.sr-results.sg-results .sr-hero{grid-template-columns:minmax(80px,40%) minmax(0,1fr);gap:10px;padding:12px;min-height:132px;border:2px solid #fff7db;border-radius:22px;align-items:center;box-sizing:border-box;overflow:hidden}
.sr-results.sg-results .sr-portrait{transform:none;transform-origin:center;max-height:none;width:100%;max-width:118px;min-width:0;justify-self:center;align-self:center;filter:drop-shadow(0 2px 3px #74563830)}
.sr-results.sg-results .sr-hero-copy{min-height:96px;width:100%;max-width:none;padding:13px 10px;align-self:center;box-sizing:border-box;background:linear-gradient(145deg,#fffcef,#fff0cb);border:2px solid #d8ad64;border-radius:19px;box-shadow:inset 0 0 0 2px #fff9e8,0 2px 3px #6a48251c;display:flex;flex-direction:column;justify-content:center}
.sr-results.sg-results .sr-hero-copy:before{display:none}
.sr-results.sg-results .sr-hero-copy strong{font-size:18px;line-height:1.2;overflow-wrap:anywhere;text-wrap:balance}
.sr-results.sg-results .sr-hero-copy>span{display:block;margin-top:7px;min-width:0}
.sr-results.sg-results .sr-xp{display:block;margin:0;padding:5px 6px;font-size:12px;line-height:1.2;overflow-wrap:anywhere;border-radius:12px}
@media(max-width:350px){.sr-results.sg-results .sr-hero{grid-template-columns:minmax(76px,38%) minmax(0,1fr);gap:8px;padding:10px;min-height:120px}.sr-results.sg-results .sr-portrait{max-width:98px}.sr-results.sg-results .sr-hero-copy{min-height:90px;padding:11px 8px;border-radius:17px}.sr-results.sg-results .sr-hero-copy strong{font-size:16px}.sr-results.sg-results .sr-xp{font-size:11px}}
@media(max-height:480px){.sr-results.sg-results .sr-hero{grid-template-columns:108px minmax(0,1fr);min-height:120px}.sr-results.sg-results .sr-portrait{max-width:108px}}
