/* Absolute completion content leaves the existing card, cover and aspect ratio untouched. */
body.reborn .rb-lesson>.lessonCelebration{
 position:absolute;inset:0;z-index:8;container-type:inline-size;box-sizing:border-box;border-radius:inherit;
 display:grid;grid-template-rows:auto auto minmax(0,1fr) 76px 46px;gap:12px;padding:22px;
 background:linear-gradient(180deg,#06140eea,#07160d9c 52%,#06140eeb),url('../klassenzimmer_neu.webp') center/cover;
 color:#f7f3e7;overflow:hidden;text-align:left;
}
body.reborn .lessonCelebration p,body.reborn .lessonCelebration h2{margin:0;}
body.reborn .lessonCelebrationHeader{display:grid;gap:8px;min-width:0;}
body.reborn .lessonCelebrationEyebrow{font-size:10px;letter-spacing:.14em;font-weight:750;color:#e5c57e;line-height:16px;}
body.reborn .lessonCelebrationGame{font-size:clamp(20px,6cqw,29px);font-weight:700;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.reborn .lessonCelebrationMeta{font-size:11px;line-height:22px;color:#e5c57e;}
body.reborn .lessonCelebrationLead{text-align:center;height:72px;display:flex;flex-direction:column;justify-content:center;gap:7px;}
body.reborn .lessonCelebrationLead h2{font-size:clamp(23px,7cqw,34px);line-height:1.15;font-weight:750;letter-spacing:-.03em;}
body.reborn .lessonCelebrationLead p{font-size:clamp(10px,3cqw,13px);line-height:18px;color:#d5ddce;white-space:nowrap;}
body.reborn .lessonCelebrationScene{min-height:0;display:grid;grid-template-rows:64px minmax(0,1fr);gap:8px;}
body.reborn .lessonCelebrationSeal{box-sizing:border-box;place-self:center;width:62px;height:62px;border-radius:50%;border:2px solid #f1d48d;display:grid;place-items:center;background:radial-gradient(circle,#c6a352aa,#5c482460);color:#ffe9a7;font-size:36px;box-shadow:0 0 30px #e4b94540;transform:rotate(-8deg);}
body.reborn .lessonCelebrationStage{position:relative;min-height:0;display:flex;align-items:flex-end;justify-content:center;isolation:isolate;}
body.reborn .lessonCelebrationSprite{display:block;flex:0 0 auto;box-sizing:border-box;width:47%;max-width:none;height:100%;min-height:0;margin-inline:-6.5%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 7px 6px #0006);animation:lessonCelebrationArrive .6s both;}
body.reborn .lessonCelebrationSprite:nth-of-type(2){animation-delay:.12s;z-index:1;}
body.reborn .lessonCelebrationSprite:nth-of-type(3){animation-delay:.24s;}
body.reborn .lessonCelebrationStage[data-size='1'] .lessonCelebrationSprite{width:75%;margin-inline:0;}
body.reborn .lessonCelebrationStage[data-size='2'] .lessonCelebrationSprite{width:56%;margin-inline:-3%;}
body.reborn .lessonCelebrationSolo{align-self:center;text-align:center;font-family:Georgia,serif;font-size:clamp(17px,5cqw,24px);line-height:1.5;color:#e3d4ac;white-space:pre-line;}
body.reborn .lessonCelebrationConfetti{position:absolute;inset:0;z-index:-1;pointer-events:none;}
body.reborn .lessonCelebrationConfetti i{position:absolute;width:4px;height:7px;background:#e9c66b;rotate:25deg;animation:lessonCelebrationGlint 2.5s ease-in-out infinite alternate;}
body.reborn .lessonCelebrationSpeech{box-sizing:border-box;min-width:0;height:76px;display:grid;grid-template-rows:14px minmax(0,1fr);gap:5px;padding:10px 13px;border:1px solid #d8bb7688;background:#0b1b15eb;border-radius:13px;}
body.reborn .lessonCelebrationSpeaker{font-size:9px;letter-spacing:.08em;color:#e5c57e;font-weight:650;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.reborn .lessonCelebrationQuote{font-size:clamp(12px,3.7cqw,17px);line-height:1.35;align-self:center;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
body.reborn .lessonCelebrationContinue{box-sizing:border-box;width:100%;min-width:0;height:46px;min-height:0;margin:0;padding:10px 12px;border:1px solid #f8dfa5;border-radius:12px;background:linear-gradient(115deg,#e9cc85,#dcbc72);color:#142319;font-weight:750;font-size:14px;line-height:20px;cursor:pointer;}
body.reborn .lessonCelebrationContinue:hover{background:#f1d694;}
body.reborn .lessonCelebrationContinue:focus-visible{outline:2px solid #fff0ba;outline-offset:-5px;}
body.reborn .lessonCelebrationLead h2:focus{outline:none;}
@keyframes lessonCelebrationArrive{from{opacity:0;transform:translateY(20px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes lessonCelebrationGlint{from{opacity:.35;translate:0 -3px}to{opacity:1;translate:0 4px}}
@media(max-width:680px){body.reborn .rb-lesson>.lessonCelebration{padding:16px;gap:10px;}body.reborn .lessonCelebrationLead{height:65px;}body.reborn .lessonCelebrationScene{grid-template-rows:58px minmax(0,1fr);}body.reborn .lessonCelebrationSeal{width:55px;height:55px;font-size:32px;}}
@media(prefers-reduced-motion:reduce){body.reborn .lessonCelebrationSprite,body.reborn .lessonCelebrationConfetti i{animation:none;}}

/* Retain every original box, while preventing higher-stacked controls showing through. */
body.reborn .rb-lesson:has(>.lessonCelebration)>:not(.lessonCelebration),
body.reborn .rb-lesson:has(>.lessonCelebration)>:not(.lessonCelebration) *{visibility:hidden!important;}
body.reborn .rb-lesson .lessonCelebrationContinue:hover:not(:disabled){background:#f1d694;border-color:#f8dfa5;}
