/* Teal depth, warm earned light, finite motion. No ceremony owns reward math. */
#round-results{max-height:calc(100dvh - 32px);width:min(440px,calc(100% - 32px));padding:20px;border-color:#537d76;background:radial-gradient(ellipse at 50% 18%,#20534c 0,transparent 54%),#0a2328}
#round-results[open]{animation:results-arrive 180ms cubic-bezier(.2,.7,.2,1) both}
/* Scroll the content while reserving visible actions, including enlarged text. */
#round-results .results-content{display:flex;flex-direction:column;max-height:calc(100dvh - 74px);overflow:hidden}
#round-results #result-scroll{overflow-y:auto;min-height:0;overscroll-behavior:contain;scroll-padding:12px}
#round-results #result-actions{position:sticky;bottom:0;z-index:2;background:#0a2328;max-height:50dvh;overflow-y:auto}
#result-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0;padding-top:12px;border-top:1px solid #8cb4aa30}
#result-actions>button{min-height:48px;flex:1 1 42%;font-size:1rem;white-space:normal;overflow-wrap:anywhere}
#result-actions>#result-continue{flex-basis:42%}
#result-actions>#result-collection{flex:1 1 42%;display:flex;align-items:center;justify-content:center;gap:12px;background:#113b3c;border:1px solid #72b9a577;border-radius:14px;color:#eaf4e9}
.collection-anchor>span:first-child{display:inline-grid;place-items:center;width:44px;height:44px;color:#e8c980;font-size:28px}
#round-results .ll-results{padding:0;background:none;border:0}
#round-results .ll-result-header{display:none}
#round-results .ll-xp{padding:0 0 20px;background:none;border:0;border-bottom:1px solid #78a59b30;border-radius:0}
#round-results .ll-xp-head{display:block;text-align:left;margin:8px 0}
#round-results .ll-xp-kicker{display:block;font-size:13px;color:#afd0c5}
#round-results .ll-xp-total{display:block;font-size:32px;min-height:44px}
#round-results .ll-ring{width:200px;height:200px;margin:18px auto 0}
#round-results .ll-explanation{margin:6px 0 12px}
.ll-results[data-landed="true"] .ll-xp-overflow{animation:ll-overflow 100ms ease-out both;border-color:#a0f7dc}
.ll-results .ll-xp-wave,.ll-results .ll-xp-bubbles{animation:none!important}
.ll-xp-svg{height:18px}
.reward-reveal{padding:12px 0 4px;text-align:center;min-height:420px}
.reveal-kicker{font-size:13px;letter-spacing:.1em;font-weight:700;color:#aacec1;margin:0 0 10px}
.reveal-heading{font-size:28px;line-height:1.2;color:#fff5dd;margin:0 0 8px;overflow-wrap:anywhere}
.reveal-art-stage{width:min(256px,100%);height:256px;margin:0 auto;position:relative;display:grid;place-items:center;isolation:isolate}
.reveal-art-stage::before{content:'';position:absolute;inset:8px;z-index:-1;border-radius:50%;background:radial-gradient(ellipse,#ffe1a124,#d5a54c0c 53%,transparent 72%)}
.reward-reveal[data-kind="microphone"] .reveal-art-stage::before{background:radial-gradient(ellipse,#efffe72e,#66e7ca15 50%,transparent 72%)}
.reveal-art-stage>.badge-art{width:224px;height:224px;object-fit:contain;margin:0}
.reveal-art-stage>.microphone-art{width:256px;height:256px}
.reveal-name{font-size:22px;color:#f5f1df;margin:4px 0 10px;line-height:1.3}
.reveal-rule{font-size:16px;line-height:1.5;color:#d4e9df;margin:0}
.reveal-context,.reveal-saved{font-size:14px;color:#9ecab9;margin:12px 0}
.reveal-glint{position:absolute;color:#f5de9d;font-size:20px;opacity:0;left:calc(12% + var(--glint-index)*14%);top:20%;pointer-events:none}
.reveal-glint:nth-child(3n){top:65%}.reveal-glint:nth-child(3n+1){top:38%}
.reward-reveal[data-kind="microphone"] .reveal-glint{color:#d9fff5}
.microphone-art{display:inline-flex;align-items:center;justify-content:center;width:128px;height:128px;flex-shrink:0}
.microphone-art img{width:100%;height:100%;object-fit:contain}
.streak-medal{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;color:#f2db99;background:radial-gradient(circle at 35% 20%,#f5dfa330,#31685b 48%,#112e32 75%);border:3px double #c9b776;box-shadow:inset 0 0 20px #e4ca7040;width:96px;height:96px}
.streak-medal>strong{font-size:36px;line-height:1}.streak-medal>small{font-size:10px;letter-spacing:.16em}.streak-medal>span{font-size:16px}
.reveal-art.streak-medal>strong{font-size:76px}.reveal-art.streak-medal>small{font-size:15px}.reveal-art.streak-medal>span{font-size:32px}
.streak-actions{display:flex;flex-direction:column-reverse;gap:12px}
#my-badges{display:flex;width:100%;min-height:120px;gap:12px;padding:16px;border:1px solid #8dc3ac69;border-radius:22px;background:radial-gradient(ellipse at 0 0,#2b675c75,transparent 75%),#102f33;text-align:left;color:#f1f3e6}
#my-badges>#trophy-preview{width:72px;height:72px;flex-shrink:0}
#trophy-preview .microphone-art{width:72px;height:72px}
.trophy-entry-copy{flex:1;display:flex;flex-direction:column;gap:5px;min-width:0}
.trophy-entry-copy>strong{font-size:18px}.trophy-entry-copy>small{font-size:14px;line-height:1.4;font-weight:400;color:#bbd7ca}
#my-badges-count{font-size:13px;color:#e3d5ab}#next-mic-hint{font-size:13px;color:#98dcca}
#freeze-tokens{align-self:stretch;width:100%;flex-basis:auto;min-height:52px}
#badges-dialog{width:calc(100% - 16px);max-width:640px;max-height:calc(100dvh - 16px);height:auto;margin:auto;border:1px solid #6a9a8d;border-radius:24px;background:radial-gradient(ellipse at 50% 0,#1d5149,transparent 60%),#09262b}
.badges-shell{padding:0 16px max(24px,env(safe-area-inset-bottom));max-width:none}
.badges-heading{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:8px;margin:0 -16px 12px;padding:16px;background:#0d2e32;border-bottom:1px solid #71a89844}
.badges-heading h2{font-size:26px;margin:0;flex:1}.badges-heading p{font-size:14px;margin:0}.badges-heading button{min-height:44px}
.trophy-intro{font-size:14px;color:#b0cdc2;line-height:1.5}
.current-microphone{text-align:center;position:relative;padding:0 12px 16px;margin:16px 0;background:radial-gradient(ellipse at 50% 38%,#dfffe621,transparent 70%);border-bottom:1px solid #79aa9733}
.current-microphone .microphone-art{width:224px;height:224px;max-width:100%}.current-microphone h3{font-size:22px;margin:0 0 8px;color:#f5f1e5}.current-microphone p{font-size:16px;color:#c4dfd1;margin:0}
.microphone-collection summary,.next-to-earn summary{min-height:48px;padding:12px 0;color:#b7d9cc;cursor:pointer}
#microphone-shelf,.badge-collection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding:0;list-style:none}
.microphone-tile{padding:12px 8px;text-align:center;border:1px solid #75ad9955;border-radius:18px;display:flex;flex-direction:column;align-items:center;min-width:0}
.microphone-tile strong{font-size:14px;color:#eaf1e6;overflow-wrap:anywhere}.microphone-tile small{font-size:13px;color:#a9c8bd;margin-top:6px}.microphone-tile.locked{opacity:.7}.microphone-tile.locked .microphone-art{opacity:.4}
.badge-tile{min-height:156px;padding:8px;border-color:#73aa9650}.badge-tile .badge-art{width:96px;height:96px}.badge-tile .badge-name{font-size:14px;line-height:1.4;color:#eaeedf}
#badges-dialog[open] .badge-tile{animation:medal-enter 120ms cubic-bezier(.2,.7,.2,1) both;animation-delay:0s}
#personal-bests{list-style:none;padding:0;margin:12px 0}.personal-best{display:flex;flex-direction:column;gap:8px;min-height:84px;padding:16px 0;border-top:1px solid #8cad9e33}
.personal-best-value{font-size:32px;line-height:1.2;color:#f4efe1;font-variant-numeric:tabular-nums}.personal-best-label{display:block;font-size:16px;color:#e2eee4}.personal-best small{display:block;font-size:13px;color:#a8c7ba;margin-top:5px;line-height:1.5}
@media(min-width:520px){.personal-best{flex-direction:row;align-items:center}.personal-best-value{min-width:165px}}
@media(prefers-reduced-motion:reduce){#round-results[open],#badges-dialog[open] .badge-tile,.ll-results[data-landed="true"] .ll-xp-overflow{animation:none}}
@media(forced-colors:active){.current-microphone,.reveal-art-stage::before,#my-badges,.streak-medal{background:Canvas;color:CanvasText;border:1px solid CanvasText}.reveal-glint{display:none}.personal-best-value,.personal-best-label,.reveal-heading,.reveal-name{color:CanvasText}}

#result-actions>#result-close{flex:0 1 auto;margin-left:auto;min-height:44px}
@media(max-width:320px){.badge-collection,#microphone-shelf{grid-template-columns:minmax(0,1fr)}}

.reveal-spotlight{position:absolute;inset:15% 25%;z-index:-1;opacity:0;border-radius:50%;background:linear-gradient(110deg,transparent,#e7fff54a,transparent);pointer-events:none}
#badge-detail-dialog[open] .earned .badge-name{animation:none}
#badge-detail-dialog[open] .badge-art{animation:medal-enter 160ms cubic-bezier(.2,.7,.2,1) both}
@media(prefers-reduced-motion:reduce){#badge-detail-dialog[open] .badge-art{animation:none}}

/* Embossed streak medals share a warm flame, fluted rim and ribbon tails. */
.streak-medal,.daily-milestone .streak-medal{position:relative;isolation:isolate;overflow:visible;border:4px double #f4d795;background:radial-gradient(circle at 36% 24%,#528c72,#153c3a 55%,#061c25 76%);box-shadow:0 0 18px #e5bf6426,inset 0 0 0 5px #806337,inset 0 0 0 7px #edd190,inset 0 0 24px #f2ce7455;text-shadow:0 2px 2px #041715}
.streak-medal::before{content:'';position:absolute;inset:5%;border:2px dashed #ddc68a88;border-radius:50%;pointer-events:none}
.streak-medal::after{content:'';position:absolute;z-index:-1;inset:70% 20% -14%;background:linear-gradient(90deg,#997343,#f2d18c 22%,#ad874b 47%,#e6c175 73%,#7a572d);clip-path:polygon(0 0,100% 0,88% 100%,52% 76%,12% 100%)}
.streak-medal>.medal-flame{width:24%;height:28%;flex-shrink:0;background:linear-gradient(#fff4c5,#ffcd73 45%,#f09444);filter:drop-shadow(0 0 5px #ffd58466);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 136'%3E%3Cpath d='M57 4C72 31 40 40 65 62c8-12 9-23 6-35 28 23 41 51 30 78-8 20-24 28-46 28-29 0-47-17-47-40 0-19 8-36 24-52-3 21 4 30 12 32C33 46 61 32 57 4Z'/%3E%3C/svg%3E") center/contain no-repeat}
.daily-milestone .streak-medal{display:flex;gap:4px;padding:16px;margin-bottom:24px}
.daily-milestone .streak-medal>strong{font-size:64px}.daily-milestone .streak-medal>small{font-size:14px}
.reward-recap{margin:18px 0 22px;padding:20px 12px;text-align:center;border:1px solid #a3dab76b;border-radius:18px;background:radial-gradient(ellipse at 50% 0,#76dfab29,transparent 75%),#10332f}
.recap-heading{font-size:23px;color:#fff1ce;margin:0 0 10px}.recap-gain{font:700 34px Oxanium,Inter,sans-serif;color:#b7ffe0;margin:8px 0}.recap-level{font-size:16px;color:#d9eadd;margin:8px 0}.recap-saved{font-size:14px;color:#bfd4c8;margin:18px 0 0}
.recap-shelf{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;margin-top:16px}.recap-item{display:flex;flex-direction:column;align-items:center;gap:12px;flex:0 1 100px;min-width:0}.recap-item>.badge-art,.recap-item>.microphone-art{width:64px;height:64px;margin:0}.recap-item .streak-medal>strong{font-size:23px}.recap-item .streak-medal>small{font-size:7px}.recap-item small{font-size:12px;line-height:1.4;color:#e3eadb;overflow-wrap:anywhere}
@media(forced-colors:active){.streak-medal::before{border-color:CanvasText}.streak-medal::after,.streak-medal>.medal-flame{background:CanvasText}.reward-recap{background:Canvas;color:CanvasText;border-color:CanvasText}}
