/* Uitkomstcapsule (Components.result + views/partials/res.php): een compacte popup rechtsonder, nooit in de paginastroom.
   Een lichtstreep loopt eenmalig om de rand, het icoon is tegelijk de afteller (ring loopt leeg), waarden staan als chips onder de tekst.
   Gelukt groen, mislukt rood, info blauw, bijzonder goud. Alle onderdelen hebben de prefix brx- zodat ze niet botsen met andere stijlen.
   Maten: --u = 1 scherm-pixel (de wrap staat in body, buiten de zoom van de pagina-inhoud). Desktop en mobiel: helemaal rechtsonder (mobiel boven de onderste menubalk). */
@property --rp{syntax:'<number>';inherits:false;initial-value:100}
@property --cd{syntax:'<number>';inherits:false;initial-value:360}
@property --ang{syntax:'<angle>';inherits:false;initial-value:0deg}
[data-ring-left].live{--p:var(--rp)!important}
.bx-reswrap{--u:calc(1px / var(--z,1));position:fixed;z-index:2147483001;left:auto;top:auto;right:calc(18 * var(--u));bottom:calc(18 * var(--u));display:flex;justify-content:flex-end;margin:0;padding:0;pointer-events:none;min-height:0;box-sizing:border-box;max-width:calc(100vw - 16px)}
html body .bx-res,html body .bx .bx-res{--rc:#34e08a;position:relative;pointer-events:auto;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:calc(10 * var(--u));row-gap:calc(7 * var(--u));box-sizing:border-box;width:auto;min-width:0;max-width:calc(340 * var(--u));margin:0;padding:calc(8 * var(--u)) calc(56 * var(--u)) calc(8 * var(--u)) calc(8 * var(--u));border:1px solid transparent;border-radius:calc(20 * var(--u));overflow:hidden;color:#fff;
  background:linear-gradient(135deg,color-mix(in srgb,var(--rc) 15%,#11141b),#0c0f15 64%) #0c0f15;border-color:color-mix(in srgb,var(--rc) 26%,transparent);box-shadow:0 18px 40px -20px color-mix(in srgb,var(--rc) 60%,#000),0 8px 20px -12px #000;animation:brxIn .45s cubic-bezier(.2,1.15,.3,1)}
html body .bx-res.bad{--rc:#ff5a4f;animation:brxIn .45s cubic-bezier(.2,1.15,.3,1),brxShake .4s .12s}
.bx-res::before{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;background:conic-gradient(from var(--ang),transparent 0,var(--rc) 16%,transparent 38%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);pointer-events:none;animation:brxEdge 1.6s cubic-bezier(.3,.7,.3,1) 1 forwards}
html body .bx-res.info{--rc:#4aa3ff}
html body .bx-res.special{--rc:#f5b83a}
html body .bx-res.special::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 35%,rgba(255,236,170,.22) 50%,transparent 65%);transform:translateX(-120%);animation:brxShine 1.3s .3s ease-out 1 forwards;pointer-events:none}
html body .bx-res.out{opacity:0;transform:translateY(8px) scale(.96);transition:opacity .22s,transform .22s}
.bx-res .brx-ic{grid-column:1;grid-row:1;position:relative;display:grid;place-items:center;width:calc(38 * var(--u));height:calc(38 * var(--u));border-radius:50%;font-size:calc(14 * var(--u));color:var(--rc);background:conic-gradient(var(--rc) calc(var(--cd) * 1deg),rgba(255,255,255,.1) 0);overflow:hidden;--cd:360;align-self:start}
.bx-res .brx-ic::before{content:"";position:absolute;inset:calc(2.5 * var(--u));border-radius:50%;background:color-mix(in srgb,var(--rc) 18%,#0c0f15)}
.bx-res .brx-ic>*{position:relative}
.bx-res.timed .brx-ic{animation:brxCd var(--ms,3000ms) linear forwards}
.bx-res.pinned .brx-ic{animation:none;--cd:360}
.bx-res .brx-ic.img{width:calc(72 * var(--u));height:calc(48 * var(--u));border-radius:calc(12 * var(--u));background:#0b0d12;animation:none}
.bx-res .brx-ic.img::before{display:none}
.bx-res .brx-ic.img img{display:block;width:100%;height:100%;object-fit:cover}
.bx-res .brx-main{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:flex-start;gap:calc(8 * var(--u));min-width:0}
.bx-res .brx-txt{display:flex;flex-direction:column;gap:calc(1 * var(--u));min-width:0;max-width:100%;padding-top:calc(2 * var(--u))}
.bx-res .brx-t{display:block;font-size:calc(13.5 * var(--u));line-height:1.3;font-weight:800;letter-spacing:-.005em;color:#fff}
.bx-res.special .brx-t{color:var(--rc)}
.bx-res .brx-s{display:block;font-size:calc(11.5 * var(--u));line-height:1.4;color:#a9afbd}
.bx-res .brx-note{display:block;margin-top:calc(2 * var(--u));font-size:calc(10.5 * var(--u));color:#7f8594}
.bx-res .brx-stats{display:flex;flex-wrap:wrap;gap:calc(5 * var(--u));margin:0}
.bx-res .brx-stat{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;column-gap:calc(6 * var(--u));align-items:center;justify-content:start;padding:calc(4 * var(--u)) calc(10 * var(--u)) calc(4 * var(--u)) calc(4 * var(--u));border-radius:calc(12 * var(--u));background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.bx-res .brx-stat i{grid-row:1/3;display:grid;place-items:center;width:calc(22 * var(--u));height:calc(22 * var(--u));border-radius:50%;font-size:calc(10 * var(--u));color:var(--c);background:color-mix(in srgb,var(--c) 18%,#0c0f15)}
.bx-res .brx-stat b{font-size:calc(13 * var(--u));line-height:1.1;font-weight:800;color:#fff;font-variant-numeric:tabular-nums}
.bx-res .brx-stat small{font-size:calc(8.5 * var(--u));line-height:1.2;letter-spacing:.07em;text-transform:uppercase;color:#8a90a0}
.bx-res .brx-bonus{display:flex;align-items:center;flex-wrap:wrap;gap:calc(7 * var(--u)) calc(10 * var(--u));width:100%;margin:0;padding:calc(7 * var(--u)) 0 0;border-top:1px dashed rgba(255,255,255,.14)}
.bx-res .brx-bi{flex:none;display:grid;place-items:center;width:calc(24 * var(--u));height:calc(24 * var(--u));border-radius:50%;font-size:calc(11 * var(--u));color:#f5b83a;background:color-mix(in srgb,#f5b83a 16%,#0c0f15)}
.bx-res .brx-bonus.bad .brx-bi{color:#ff5a4f;background:color-mix(in srgb,#ff5a4f 16%,#0c0f15)}
.bx-res .brx-bt{display:flex;flex-direction:column;min-width:0}
.bx-res .brx-bt b{font-size:calc(12 * var(--u));font-weight:800;color:#fff}.bx-res .brx-bt span{font-size:calc(10.5 * var(--u));color:#8a90a0}
.bx-res .brx-bonus .brx-stats{margin:0}.bx-res .brx-bonus .brx-stat b{font-size:calc(12 * var(--u))}
.bx-res .brx-act{grid-column:2;display:flex;flex-wrap:wrap;gap:calc(6 * var(--u))}
.bx-res .brx-btn{display:inline-flex;align-items:center;justify-content:center;min-height:calc(28 * var(--u));padding:0 calc(12 * var(--u));border-radius:999px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#fff;font:inherit;font-size:calc(11.5 * var(--u));font-weight:800;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.bx-res .brx-btn:hover{background:rgba(255,255,255,.12);border-color:var(--rc);transform:translateY(-1px)}
.bx-res .brx-btn.p{background:var(--rc);border-color:var(--rc);color:#071009}
.bx-res .brx-tools{position:absolute;top:calc(8 * var(--u));right:calc(8 * var(--u));display:flex;gap:calc(3 * var(--u))}
.bx-res .brx-tools button{display:grid;place-items:center;width:calc(22 * var(--u));height:calc(22 * var(--u));padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.05);color:#8a90a0;font-size:calc(10 * var(--u));cursor:pointer;transition:background .15s,color .15s}
.bx-res .brx-tools button:hover{background:rgba(255,255,255,.14);color:#fff}
.bx-res .brx-pin{transform:rotate(38deg)}
.bx-res .brx-pin[aria-pressed=true],.bx-res.pinned .brx-pin{color:var(--rc);background:color-mix(in srgb,var(--rc) 18%,transparent);transform:none}
.bx-res .brx-bar{display:none}
.bx-res:has(.brx-ic.img) .brx-bar{display:block;position:absolute;left:0;right:0;bottom:0;height:calc(2 * var(--u));background:var(--rc);opacity:0;transform-origin:left;box-shadow:0 0 8px var(--rc)}
.bx-res:has(.brx-ic.img).timed .brx-bar{opacity:.9;animation:brxBar var(--ms,5000ms) linear forwards}
.bx-res:has(.brx-ic.img).pinned .brx-bar{opacity:0;animation:none}
html body .bx-res.compact,html body .bx .bx-res.compact{align-items:center}
.bx-res.compact .brx-ic{align-self:center}
.bx-res.compact .brx-txt{padding-top:0}
.bx-res.compact .brx-t{font-size:calc(13 * var(--u))}
@keyframes brxIn{from{opacity:0;transform:translateY(16px) scale(.94)}to{opacity:1;transform:none}}
@keyframes brxEdge{from{--ang:0deg}to{--ang:360deg}}
@keyframes brxCd{from{--cd:360}to{--cd:0}}
@keyframes brxBar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@keyframes brxShine{to{transform:translateX(120%)}}
@keyframes brxShake{0%,100%{translate:0}20%{translate:-5px}40%{translate:4px}60%{translate:-3px}80%{translate:2px}}
@media (max-width:1000px){.bx-reswrap{left:calc(8 * var(--u));right:calc(8 * var(--u));bottom:calc(76 * var(--u));max-width:none}body:has(#app-bar) .bx-reswrap{bottom:calc(142 * var(--u))}html body .bx-res,html body .bx .bx-res{max-width:100%}}
@media (prefers-reduced-motion:reduce){html body .bx-res,html body .bx-res.bad{animation:none}html body .bx-res.special::after{display:none}.bx-res.timed .brx-ic{animation:none}.bx-res:has(.brx-ic.img).timed .brx-bar{animation:none;opacity:0}}

/* Mobiel en app: geen punaise (melding sluit altijd vanzelf), alleen het kruisje. */
@media (max-width:900px),(pointer:coarse){.bx-res .brx-pin{display:none!important}}
