/* One accessible, name-once award flow; each adventure supplies its own theme. */
.rrdd-completion-host{transform:none!important;filter:none!important}
.achievement-overlay:has(.rrdd-unified-result:not([hidden])){background:none!important;backdrop-filter:none!important;inset:72px 0 26px!important;z-index:30!important;padding:0!important}
.rrdd-completion-host:has(>.rrdd-unified-result:not([hidden]))>:not(.rrdd-unified-result){display:none!important}
.rrdd-result.rrdd-unified-result{position:fixed!important;inset:72px 0 26px!important;z-index:30;max-width:none!important;max-height:none!important;width:auto!important;margin:0!important;padding:22px clamp(20px,5vw,90px)!important;overflow:auto!important;background:radial-gradient(ellipse at 12% 8%,#fff0bd88,transparent 55%),#fffaf1!important;border:0!important;border-radius:0!important;box-shadow:none!important;box-sizing:border-box;color:#173c61!important;text-align:left!important;font:16px/1.4 'Trebuchet MS',system-ui,sans-serif!important;display:flex!important;flex-direction:column;align-items:center}
.rrdd-unified-result[hidden]{display:none!important}
.rrdd-unified-result>h2{font:800 clamp(22px,2.4vw,36px)/1.15 'Trebuchet MS',sans-serif!important;color:#173c61!important;margin:0 0 6px!important;text-align:center!important}
.rrdd-unified-result .rrdd-award-intro{margin:0 0 18px!important;text-align:center;font-size:14px!important;color:#45677b!important}
.rrdd-completion-layout{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(360px,1fr);align-items:center;gap:clamp(24px,5vw,72px);max-width:1050px;width:100%;min-height:0;flex:1}
.rrdd-certificate-preview{min-height:0;align-self:stretch;display:flex;align-items:center;justify-content:center}
.rrdd-certificate-preview canvas{display:block;max-width:100%;width:auto!important;height:min(56vw,calc(100dvh - 215px))!important;max-height:100%;aspect-ratio:4/5;background:#fffaf1;border-radius:12px;box-shadow:0 16px 45px #173c6126}
.rrdd-certificate-form{padding:24px;background:#ffffffd9;border:1px solid #e6e8df;border-radius:24px;box-shadow:0 10px 32px #173c610b;min-width:0}
.rrdd-certificate-form h3{font:800 24px/1.2 'Trebuchet MS',sans-serif!important;color:#173c61!important;margin:0 0 7px!important}
.rrdd-certificate-form .rrdd-time-summary{color:#45677b!important;margin:0 0 16px!important;font-size:13px!important}
.rrdd-certificate-form label{font:700 15px/1.4 'Trebuchet MS',sans-serif!important;margin:0 0 8px!important;color:#173c61!important}
.rrdd-certificate-form input:not([type=checkbox]){display:block!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;height:46px!important;border:2px solid #b3cbd2!important;border-radius:12px!important;background:white!important;color:#173c61!important;margin-top:6px!important;padding:8px 12px!important;font:18px 'Trebuchet MS',sans-serif!important}
.rrdd-certificate-form>small{display:block;font-size:12px;line-height:1.4;color:#45677b}
.rrdd-certificate-form details{position:relative;margin:12px 0}
.rrdd-certificate-form summary{cursor:pointer;min-height:40px;box-sizing:border-box;padding:10px 14px;background:#eaf4ef;border-radius:12px;font-size:14px;font-weight:700;color:#245e53}
.rrdd-certificate-form .rrdd-avatar-picker{position:absolute;z-index:3;left:0;right:0;bottom:45px;margin:0!important;padding:12px!important;background:#fffaf1;border:2px solid #90b9a9;border-radius:16px;box-shadow:0 10px 30px #173c6140}
.rrdd-certificate-form .rrdd-avatar-grid{max-width:none;gap:5px}.rrdd-certificate-form .rrdd-avatar-option{max-height:58px!important;aspect-ratio:1!important;min-height:0!important}
.rrdd-certificate-form .rrdd-share-choice{font-size:12px!important;font-weight:400!important;align-items:flex-start!important;margin:10px 0 14px!important;cursor:pointer}
.rrdd-certificate-form .rrdd-get-certificate{display:block;width:100%;min-height:48px!important;border-radius:15px!important;background:#ffda64!important;border:1px solid #e9b331!important;box-shadow:0 4px 0 #d8a329!important;color:#173c61!important;font:700 17px 'Trebuchet MS',sans-serif!important;padding:12px!important}
.rrdd-certificate-status{margin:12px 0 0!important;font-size:12px!important;color:#285e51!important;min-height:17px}
.rrdd-completion-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:10px}
.rrdd-completion-links a{font-size:13px!important;color:#173c61!important;min-height:28px;display:inline-flex;align-items:center}
.rrdd-certificate-form .rrdd-rating-details{margin:8px 0 0}.rrdd-rating-details>summary{background:transparent!important;padding:5px 0!important;min-height:28px!important;font-size:12px!important;color:#45677b!important}
.rrdd-rating-details>.rating,.rrdd-rating-details>.achievement-rating{position:absolute;bottom:32px;left:0;right:0;z-index:4;padding:18px!important;max-height:260px;overflow:auto;background:#fffaf1!important;color:#173c61!important;border:2px solid #b3cbd2;border-radius:16px;box-shadow:0 10px 30px #173c6140}
.rrdd-rating-details h2,.rrdd-rating-details p{font:700 14px/1.4 'Trebuchet MS',sans-serif!important;color:#173c61!important;margin:0 0 10px!important}.rrdd-rating-details button{min-width:44px;min-height:44px}.rrdd-rating-details [data-rating-summary],.rrdd-rating-details #ratingStatus{font-size:12px!important}
.rrdd-unified-result :focus-visible{outline:3px solid #16759c!important;outline-offset:3px}
.rrdd-game-header.rrdd-has-challenge-timer #timer,.rrdd-game-header.rrdd-has-challenge-timer #adventureTimer{display:none!important}
.rrdd-game-header>.rrdd-challenge-timer{position:absolute!important;right:70px;top:6px}
.rrdd-game-header .rrdd-game-tools{box-sizing:border-box}
.rrdd-challenge-timer{display:grid!important;grid-template-columns:auto auto;column-gap:8px;align-items:center;border:1px solid #c8dadc;border-radius:16px;padding:5px 11px;background:white!important;color:#173c61!important;min-width:116px;min-height:44px;box-sizing:border-box;white-space:nowrap;font:11px/1.2 'Trebuchet MS',sans-serif!important;pointer-events:auto}
.rrdd-challenge-timer b{grid-column:2;grid-row:1/3;font:700 20px/1.2 'Trebuchet MS',sans-serif!important;font-variant-numeric:tabular-nums;color:#173c61!important}
.rrdd-challenge-timer small{font-size:10px;color:#496c77}.rrdd-challenge-timer[data-state=running] small{color:#20735e}
@media(max-width:1250px){.rrdd-game-header .header-actions button>span{display:none!important}}
@media(orientation:landscape) and (min-width:1000px) and (min-height:650px){.rrdd-result.rrdd-unified-result{overflow:hidden!important}.rrdd-completion-layout{max-height:calc(100dvh - 208px)}.rrdd-certificate-form{padding:18px 22px}.rrdd-certificate-form details{margin:10px 0}.rrdd-certificate-form .rrdd-time-summary{margin-bottom:12px!important}}
@media(max-width:700px){.rrdd-result.rrdd-unified-result{inset:120px 0 26px!important;padding:20px!important}.rrdd-completion-layout{grid-template-columns:1fr;gap:22px;flex:none;min-height:auto}.rrdd-certificate-preview{min-height:360px!important}.rrdd-certificate-preview canvas{height:360px!important}.rrdd-game-header .rrdd-game-tools button>span{display:none!important}.rrdd-challenge-timer{min-width:100px;padding:5px 8px}.rrdd-game-header .rrdd-game-tools{gap:4px!important}}
.rrdd-learning-review{border:2px solid #d2e6de;background:#f3faf4;border-radius:18px;padding:16px;margin-bottom:20px}.rrdd-learning-review h3{font-size:22px!important}.rrdd-review-choices{display:flex;flex-wrap:wrap;gap:10px}.rrdd-learning-review button{min-height:48px;min-width:48px;border:2px solid #d6ae55;border-radius:14px;background:#ffe294;color:#163e61;padding:10px 16px;font:inherit;cursor:pointer}.rrdd-learning-review button:disabled{opacity:.5;cursor:default}.rrdd-learning-review button:focus-visible{outline:3px solid #1a70a5;outline-offset:3px}
