/* 029BZ. Guided Scene celebrations, personal award history. Scoped to avoid touching Puzzle Arcade / Free Place. */
.sgz-ceremony{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:15px;background:rgba(15,36,30,.81);overflow-y:auto}
.sgz-ceremony[hidden],.sgz-history-page [hidden],#sgz-open-results[hidden]{display:none!important}
.sgz-ceremony-card{position:relative;z-index:1;width:min(650px,100%);max-height:calc(100vh - 32px);overflow-y:auto;padding:clamp(18px,4vw,36px);border:3px solid #74b99b;border-radius:22px;background:linear-gradient(150deg,#fcfff4,#f0fff2 52%,#fff4df);color:#204e3f;box-shadow:0 20px 70px #0007;text-align:center}
.sgz-kicker{letter-spacing:.14em;font-weight:900;color:#167651;font-size:.8rem}
.sgz-ceremony-card h2{font-size:clamp(1.35rem,4vw,2rem);line-height:1.2;margin:7px 0 9px}
.sgz-ceremony-card h3{margin:18px 0 10px}
.sgz-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:15px 0}
.sgz-stat{background:#fff;border:1px solid #c4dfce;border-radius:12px;padding:9px 5px;display:grid;gap:4px}
.sgz-stat strong{font-size:1.4rem;color:#14694c}
.sgz-stat span{font-size:.75rem;color:#496e5e}
.sgz-person{padding:12px;border:1px solid #b8d9c5;border-radius:13px;background:#fff;text-align:left;margin:8px 0}
.sgz-person>strong{display:block;font-size:1.05rem}
.sgz-person>small{color:#567468}
.sgz-awards{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;margin:10px 0}
.sgz-person .sgz-awards{justify-content:flex-start}
.sgz-award{display:inline-flex;padding:7px 10px;border:1px solid #b4d7c1;background:#e9f8ed;border-radius:999px;font-weight:700;font-size:.8rem;line-height:1.3}
.sgz-ceremony-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:18px}
.sgz-ceremony-actions>*{min-height:42px;display:inline-flex;align-items:center;justify-content:center;text-align:center;padding:9px 13px}
.sgz-ceremony-actions a[hidden]{display:none!important}
.sgz-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.sgz-confetti span{position:absolute;top:-15%;font-size:clamp(1.5rem,3vw,2.4rem);color:#d3b23b;animation:sgz-fall 4.3s ease-out both}
.sgz-confetti span:nth-child(1){left:8%;animation-delay:.05s}.sgz-confetti span:nth-child(2){left:22%;color:#f47b87;animation-delay:.32s}.sgz-confetti span:nth-child(3){left:37%;color:#62b9a0;animation-delay:.18s}.sgz-confetti span:nth-child(4){left:50%;animation-delay:.42s}.sgz-confetti span:nth-child(5){left:65%;color:#a18bd4;animation-delay:.11s}.sgz-confetti span:nth-child(6){left:81%;animation-delay:.28s}.sgz-confetti span:nth-child(7){left:94%;color:#6db9d7;animation-delay:.4s}
@keyframes sgz-fall{0%{transform:translateY(-20vh) rotate(0);opacity:0}13%{opacity:1}85%{opacity:1}100%{transform:translateY(110vh) rotate(370deg);opacity:0}}
.sgz-history-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:12px;margin-top:14px}
.sgz-history-card{min-width:0;background:#fff;border:1px solid #bbd7c6;border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:9px;overflow-wrap:anywhere}
.sgz-history-card h3,.sgz-history-card p{margin:0}.sgz-history-card h3{font-size:1.05rem}.sgz-history-card small{color:#50715f}.sgz-history-card .sgz-awards{justify-content:flex-start}
.sgz-history-card details{border:1px solid #d1e6d9;border-radius:9px;padding:7px}.sgz-history-card summary{cursor:pointer}.sgz-history-card .ss-button{margin-top:auto;display:block;text-align:center}
.sgz-page-links{display:flex;align-items:center;justify-content:center;gap:12px;margin:16px 0 4px}
@media(max-width:520px){.sgz-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sgz-ceremony-actions{flex-direction:column}.sgz-ceremony-actions>*{width:100%}}
@media(prefers-reduced-motion:reduce){.sgz-confetti span{animation:none;display:none}}
