/* Shared decorative card treatment; scoped to approved Stage Goal and Run Results wrappers. */
.sr-goal-screen.sg-polished{isolation:isolate;border:0!important;border-radius:25px!important;background:#fff3d2!important;box-shadow:0 6px 0 #65402d,0 13px 25px #22102b55!important;padding:8px 17px 16px!important;color:#60331e}
.sg-polished:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border:18px solid transparent;border-image:url('ui/stage-goal-v598/frame.webp') 130 fill stretch;clip-path:inset(0 round 25px)}
.sg-polished .sg-header{position:relative;background:url('ui/stage-goal-v598/header.webp') center/100% 100% no-repeat;min-height:108px;margin:-5px -9px -8px;padding:38px 45px 19px;box-sizing:border-box;z-index:2}
.sg-polished .sr-ribbon{position:absolute;left:30%;top:9%;width:40%;height:20%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0!important;margin:0!important;border:0;background:none;box-shadow:none;font-size:11px;line-height:1;letter-spacing:0;color:#7b4629;white-space:nowrap}
.sg-polished .sr-ribbon:before,.sg-polished .sr-ribbon:after{display:none}
.sg-polished h1{font-size:33px!important;line-height:1;margin:0!important;letter-spacing:-.5px;color:#582c1c;text-shadow:0 2px #fff1d7}
.sg-polished .sr-world{margin:5px auto 0!important;font-size:11px!important;line-height:1.1;color:#936b49;overflow-wrap:anywhere}
.sg-polished .sr-close{right:-1px;top:12px;width:42px;height:42px;border:3px solid #bb884c;box-shadow:inset 0 0 0 2px #fff4da,0 3px 0 #956139,0 4px 6px #754f3155;background:radial-gradient(#fffdf0,#ffe6b7);color:#8e4a25;z-index:3;font-size:32px}
.sg-polished .sr-hero{grid-template-columns:43% minmax(0,1fr);min-height:139px;gap:0;padding:6px 2px 5px;margin:0;border:2px solid #fff7db;border-radius:30px 30px 12px 12px;background-size:cover;background-position:center;overflow:visible}
.sg-polished .sr-portrait{transform:scale(1.12);transform-origin:center bottom;filter:drop-shadow(0 0 4px #ffe166);z-index:1;align-self:end}
.sg-polished .sr-hero-copy{background:url('ui/stage-goal-v598/plaque.webp') center/100% 100% no-repeat;border:0;border-radius:0;box-shadow:none;padding:25px 10px 22px;min-height:110px;box-sizing:border-box;align-self:center;z-index:1}
.sg-polished .sr-hero-copy strong{font-size:19px;line-height:1.12;color:#542515}
.sg-polished .sr-hero-copy>span{font-size:11px;line-height:1.2;margin-top:6px;color:#886044}
.sg-polished .sr-goals{gap:5px;padding:6px;margin-top:4px;background:linear-gradient(#fffbed,#fff6df);border-radius:13px;box-shadow:0 2px 5px #c4915040}
.sg-polished .sr-goal{grid-template-columns:42px minmax(0,1fr) 24px;gap:7px;min-height:49px;padding:5px 7px;border-color:#edc28b;background:linear-gradient(110deg,#fff8df,#fff4e0);border-radius:11px;box-shadow:inset 0 0 0 1px #fffbea}
.sg-polished .sr-goal:first-child:has(canvas){border-color:#afc680;background:linear-gradient(110deg,#e9f4d1,#f9f8e5)}
.sg-polished .sr-goal.is-done{border-color:#9dbd68;background:#eaf4d8}
.sg-polished .sr-goal-copy strong{font-size:14px;line-height:1.15}
.sg-polished .sr-goal-copy small{font-size:10px;line-height:1.15;color:#98714f}
.sg-polished .sr-goal-icon,.sg-polished .sr-goal-icon .sr-pal{width:42px;height:42px;position:relative}
.sg-icon{display:block;width:100%;height:100%;object-fit:contain}.sg-has-icon:has(.sg-icon)>svg{display:none}
.sg-polished .sr-check{width:22px;height:22px;border-width:2px;background:linear-gradient(#fffcf0,#fbe5c5);box-shadow:inset 0 0 0 2px #fff4da,0 1px 0 #e3bd87}
.sg-polished .sr-meter{height:8px;background:#baa18d;border-color:#b99b7e;box-shadow:inset 0 0 0 1px #fff6e2}
.sg-polished .sr-extras{gap:7px;margin-top:13px}
.sg-polished .sr-extra{position:relative;padding:15px 4px 5px;border-radius:13px;background:radial-gradient(ellipse at top,#fff9d2,#fff0b7);border-color:#e4b64e;box-shadow:inset 0 0 0 1px #fff8d7,0 2px 3px #bf945c55}
.sg-polished .sr-extra h2{position:absolute;top:-10px;left:13%;right:13%;border:1px solid #ffe6a1;border-radius:22px;padding:4px 5px!important;background:linear-gradient(#eec664,#c98f28);box-shadow:0 2px 0 #c6923a,inset 0 0 0 1px #ffedb8;color:#fffefa;font-size:10px;line-height:1;white-space:nowrap}
.sg-polished .sr-extra h2 small{position:absolute;top:24px;left:0;right:0;color:#996f3a;font-size:7px;letter-spacing:.5px}
.sg-polished .sr-extra .sr-goal{padding:9px 2px 2px;min-height:48px;grid-template-columns:29px minmax(0,1fr) 18px;gap:4px;background:none!important;box-shadow:none}
.sg-polished .sr-extra .sr-goal-copy strong{font-size:11px}.sg-polished .sr-extra .sr-goal-copy small,.sg-polished .sr-extra .sr-meter{display:none}
.sg-polished .sr-extra .sr-goal-icon,.sg-polished .sr-extra .sr-goal-icon .sr-pal{width:29px;height:29px}
.sg-polished .sr-extra .sr-check{width:16px;height:16px}
.sg-polished .sr-mastery{border-color:#b68ad9;background:radial-gradient(ellipse at top,#f5e7ff,#e7d3f6)}.sg-polished .sr-mastery h2{background:linear-gradient(#bda0f1,#9465c8);box-shadow:0 2px 0 #aa7fd3,inset 0 0 0 1px #e5d0ff;border-color:#ebd9ff}.sg-polished .sr-mastery h2 small{color:#8c60ab}
.sg-polished .sr-rule{margin-top:9px;border:2px solid #c0a8d4;border-radius:11px;padding:10px 8px 10px 35%;min-height:65px;box-shadow:inset 0 0 0 1px #efe2ff}
.sg-polished .sr-rule small{display:table;font-size:9px;padding:3px 7px;background:#8872b5c9;border:1px solid #af92d7;color:#eee4ff;margin-bottom:4px;line-height:1.1}
.sg-polished .sr-rule strong{font-size:14px;line-height:1.15}.sg-polished .sr-rule p{font-size:11px!important;line-height:1.2;color:#e3d8ef}
.sg-polished .sr-note{position:relative;border-top:2px dotted #d5a262;padding-top:7px;margin:9px 6px 4px!important;font-size:9px!important;line-height:1.3;color:#936747}.sg-polished .sr-note:before{content:'✦';position:absolute;top:-9px;left:calc(50% - 8px);width:16px;background:#fff0cb;color:#e3ae4f;font-size:13px}
.sg-polished .sr-primary{border:0!important;border-radius:0!important;background:transparent url('ui/stage-goal-v598/button.webp') center/100% 100% no-repeat!important;box-shadow:none!important;min-height:65px;padding:12px 35px 10px!important;font-size:22px!important;line-height:1.1!important;color:#245c12!important;text-shadow:0 1px #dcffa4}
.sg-polished.sg-single .sr-hero{min-height:151px}.sg-polished.sg-single .sr-goals{margin-top:6px}
@media(max-width:350px){.sr-goal-screen.sg-polished{padding:7px 14px 12px!important}.sg-polished:before{border-width:15px}.sg-polished .sg-header{margin:-3px -8px -6px;padding:35px 42px 16px;min-height:100px}.sg-polished h1{font-size:29px!important}.sg-polished .sr-ribbon{font-size:10px}.sg-polished .sr-world{font-size:10px!important}.sg-polished .sr-close{width:39px;height:39px;right:-2px;top:9px}.sg-polished .sr-hero{min-height:121px}.sg-polished .sr-hero-copy{padding:24px 9px 20px;min-height:103px}.sg-polished .sr-hero-copy strong{font-size:16px}.sg-polished .sr-goal{grid-template-columns:35px minmax(0,1fr) 22px;gap:5px;min-height:44px}.sg-polished .sr-goal-icon,.sg-polished .sr-goal-icon .sr-pal{width:35px;height:35px}.sg-polished .sr-goal-copy strong{font-size:12px}.sg-polished .sr-goal-copy small{font-size:9px}.sg-polished .sr-extra .sr-goal{grid-template-columns:24px minmax(0,1fr) 16px;min-height:47px;gap:3px}.sg-polished .sr-extra .sr-goal-icon{display:block;width:24px;height:24px}.sg-polished .sr-extra .sr-goal-copy strong{font-size:10px}.sg-polished .sr-extra h2{font-size:9px;left:9%;right:9%}.sg-polished .sr-rule strong{font-size:12px}.sg-polished .sr-rule p{font-size:10px!important}.sg-polished .sr-rule small{font-size:8px}.sg-polished .sr-primary{min-height:59px;font-size:20px!important}}
@media(max-height:480px){.sg-polished .sr-hero{grid-template-columns:125px minmax(0,1fr);min-height:120px}.sg-polished .sr-portrait{max-width:125px}.sg-polished .sg-header{max-width:400px;margin-left:auto;margin-right:auto}.sg-polished .sr-primary{min-height:61px}.sg-polished .sr-hero-copy{max-width:300px}}
.sg-polished .sr-primary{background-image:url('ui/stage-goal-v598/button.webp'),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100'%3E%3Crect x='40' y='18' width='320' height='65' rx='32' fill='%23b6e77b' stroke='%237ba242' stroke-width='3'/%3E%3C/svg%3E")!important;background-size:100% 100%,100% 100%!important;background-repeat:no-repeat!important;background-position:center!important}
.sg-polished .sr-hero-copy{background-image:url('ui/stage-goal-v598/plaque.webp'),radial-gradient(ellipse at center,#fff5dc 60%,transparent 64%);background-size:100% 100%;background-position:center;background-repeat:no-repeat}
.sg-polished .sr-hero-copy{position:relative;isolation:isolate;background-image:radial-gradient(ellipse at center,#fff5dc 60%,transparent 64%);padding:40px 12px 25px}
.sg-polished .sr-hero-copy:before{content:'';position:absolute;inset:0;pointer-events:none;z-index:-1;border-style:solid;border-color:transparent;border-width:35px 14px 22px;border-image:url('ui/stage-goal-v598/plaque.webp') 85 55 50 fill stretch}
@media(max-width:350px){.sg-polished .sr-hero-copy{padding:36px 10px 24px}.sg-polished .sr-hero-copy:before{border-top-width:32px}}
