/* A click-through vignette; native dialogs keep the foreground and focus. */
.cfx-layer{position:fixed;inset:0;pointer-events:none!important;z-index:4000;overflow:hidden;isolation:isolate;contain:layout style paint}
.cfx-layer *{pointer-events:none!important;box-sizing:border-box}
.cfx-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.cfx-scene{
  --mint:#dfc38a;--cool:#c2aa78;--alloy:#8c7753;--metal-dark:#49402e;--glyph:#eed9a7;--incision:#403926;
  --roll:565ms;--pop:475ms;--flight:565ms;--ink:#f4edd9;
  position:absolute;left:var(--cfx-x,50%);top:var(--cfx-y,43%);transform:translate(-50%,-50%);
  display:grid;justify-items:center;align-content:center;width:min(356px,94vw);min-height:204px;
  background:radial-gradient(ellipse 53% 46% at center,#172421fa 0%,#12201cec 43%,#0b1613b3 74%,transparent 100%);
  text-align:center;color:var(--ink);font:500 15px/1.36 "Malgun Gothic","Apple SD Gothic Neo",system-ui,sans-serif;
  transition:opacity 138ms ease-out;animation:cfx-appear 160ms ease-out both;
}
.cfx-scene::before,.cfx-scene::after{
  content:"";width:43%;height:1px;position:absolute;left:28.5%;
  background:linear-gradient(90deg,transparent,#c2ab74a1 31%,#e4c993d1 49%,#c2ab74a1 68%,transparent);
}
.cfx-scene::before{top:10%}.cfx-scene::after{bottom:9%;opacity:.58}
.cfx-scene.cfx-exit{opacity:0;animation:none}
.cfx-scene.cfx-covered{visibility:hidden}
.cfx-caption{position:relative;z-index:2;color:#e1d4ae;font-size:13px;line-height:1.35;letter-spacing:.035em;font-weight:650;max-width:86%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 2px 5px #050a08}
.cfx-stage{position:relative;width:199px;height:108px;isolation:isolate;margin-top:3px;perspective:530px}
.cfx-well{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);width:82px;height:82px;perspective:550px;z-index:2}
.cfx-well::after{
  content:"";position:absolute;left:-4%;top:96%;width:108%;height:11%;
  border-radius:50%;background:radial-gradient(ellipse, #040907d9, transparent 68%);filter:blur(2px);z-index:-1;
}
.cfx-well:has(.cfx-landed)::before{
  content:"";position:absolute;inset:-8px;border:1px solid var(--mint);border-radius:50%;
  opacity:0;animation:cfx-ring 360ms ease-out both;
}
.cfx-bag{position:absolute;width:88px;height:70px;left:8px;bottom:2px;z-index:1;overflow:visible;transform:rotate(-8deg);opacity:.79;filter:drop-shadow(1px 6px 3px #040806bb);animation:cfx-bag var(--flight) cubic-bezier(.16,.68,.22,1) both}
.cfx-bag-body{fill:#243c34;stroke:#728371;stroke-width:1.8;stroke-linejoin:round}
.cfx-bag-band{fill:#9c8250;stroke:#d5be88;stroke-width:1.25}
.cfx-bag-stitch,.cfx-bag-seam,.cfx-drawstring{fill:none;stroke-linecap:round;stroke-linejoin:round}
.cfx-bag-stitch{stroke:#af9c6c;stroke-width:1.25}.cfx-bag-seam{stroke:#556c5b;stroke-width:1.8}
.cfx-drawstring{stroke:#c3ad76;stroke-width:2.5}
.cfx-nobag .cfx-bag{visibility:hidden}
.cfx-coin{
  width:100%;height:100%;position:relative;transform-style:preserve-3d;isolation:isolate;
  filter:drop-shadow(1px 5px 4px #060b0ad6);
  animation:cfx-flight var(--flight) cubic-bezier(.18,.65,.25,1) both;
}
.cfx-coin-body{position:absolute;inset:0;transform-style:preserve-3d;animation:cfx-roll var(--roll) cubic-bezier(.16,.73,.29,1) both}
.cfx-coin-body::before{
  content:"";position:absolute;inset:0;border-radius:50%;
  transform:translateY(2px) translateZ(-1px);background:repeating-conic-gradient(from -2deg,#4f4e3b 0deg 2deg,#988768 2deg 3deg,#3a3e31 3deg 6deg);
  box-shadow:0 2px 1px #141b14;
}
.cfx-front,.cfx-back{
  position:absolute;inset:0;display:grid;place-items:center;border-radius:50%;
  backface-visibility:hidden;-webkit-backface-visibility:hidden;
  background:repeating-conic-gradient(from 1deg,var(--alloy) 0deg 2.3deg,var(--mint) 2.3deg 3.1deg,var(--metal-dark) 3.1deg 5.6deg);
  border:1px solid var(--cool);box-shadow:inset 1px 1px 1px #fff6cead,inset -1px -2px 1px #141b14,0 0 0 1px #0a100dc2;
}
.cfx-front{transform:translateZ(.6px)}
.cfx-back{transform:rotateY(180deg) translateZ(.6px)}
.cfx-front::before,.cfx-back::before{
  content:"";position:absolute;inset:5%;border-radius:50%;
  background:linear-gradient(138deg,var(--mint),var(--alloy) 43%,var(--metal-dark) 76%,var(--cool));
  border:1px solid var(--metal-dark);box-shadow:inset 0 0 0 1px #f2e6b262;
}
.cfx-stamp,.cfx-backmark{
  z-index:1;border-radius:50%;width:80%;height:80%;display:grid;place-items:center;position:relative;
  border:1px solid var(--mint);box-shadow:0 0 0 1px var(--metal-dark),inset 2px 3px 5px #0c140f96,inset -1px -1px 2px var(--cool);
  background:
    repeating-linear-gradient(125deg,#ffffff0a 0 .65px,transparent .65px 3px),
    radial-gradient(circle at 31% 19%,var(--cool),var(--alloy) 42%,var(--metal-dark) 100%);
}
.cfx-backmark{background:repeating-conic-gradient(from 15deg,#4b5246 0 8deg,#4d5749 8deg 16deg);border-color:#a69871;box-shadow:inset 0 0 8px #141c14}
.cfx-backmark::before,.cfx-backmark::after{content:"";position:absolute;inset:27%;border:1px solid #cabb86;transform:rotate(45deg);box-shadow:0 0 0 2px #2d3a2b}
.cfx-backmark::after{inset:38%;transform:rotate(45deg);background:#b2a476}
.cfx-emblem{position:relative;width:82%;height:82%;overflow:visible;filter:drop-shadow(0 -1px 0 var(--mint)) drop-shadow(0 1px .45px #20241cbf)}
.cfx-solid{fill:var(--glyph);stroke:var(--incision);stroke-width:1.45;stroke-linejoin:round}
.cfx-cut{fill:var(--incision);stroke:var(--incision);stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
.cfx-etch,.cfx-line,.cfx-inner{fill:none;stroke-linecap:round;stroke-linejoin:round}
.cfx-etch{stroke:var(--incision);stroke-width:2.1}.cfx-line{stroke:var(--glyph);stroke-width:2.1}.cfx-inner{stroke:var(--incision);stroke-width:1.6}
.cfx-digit{font:700 37px/.95 Georgia,"Times New Roman",serif;letter-spacing:-.075em;margin-right:.045em;margin-top:-2%;color:var(--glyph);text-shadow:0 1px 0 #2c291b,1px 2px 1px var(--incision),0 -1px 0 var(--mint)}
.cfx-digit.cfx-dense-number{font-size:31px}
.cfx-face-name{position:relative;z-index:2;margin-top:0;min-height:22px;color:#f1e9cd;font-size:16px;font-weight:750;text-shadow:0 2px 4px #040907;letter-spacing:.035em}
.cfx-chain{display:flex;gap:4px;justify-content:center;align-items:center;max-width:94%;min-height:0;margin-top:2px}
.cfx-chain-chip{display:inline-flex;align-items:center;gap:5px;color:var(--glyph);font-size:11px;line-height:1.2;font-weight:650;white-space:nowrap}
.cfx-chain-chip+.cfx-chain-chip::before{content:"+";color:#afaa8f}
.cfx-motes{position:absolute;inset:0;display:grid;place-items:center;transform:translateZ(.1px);z-index:3}
.cfx-mote{position:absolute;top:52%;left:50%;width:2px;height:4px;background:var(--mint);box-shadow:0 0 3px var(--cool);border-radius:1px;opacity:0;animation:cfx-mote var(--ms,360ms) var(--pop) ease-out both}

.cfx-scene[data-tone="skull"],.cfx-coin[data-tone="skull"],.cfx-motes[data-tone="skull"],.cfx-chain-chip[data-tone="skull"]{
  --mint:#e7dcc8;--cool:#b1b5a5;--alloy:#777e71;--metal-dark:#39413a;--glyph:#e6dfc8;--incision:#354037}
.cfx-scene[data-tone="cultist"],.cfx-coin[data-tone="cultist"],.cfx-motes[data-tone="cultist"],.cfx-chain-chip[data-tone="cultist"]{
  --mint:#eac3a2;--cool:#c79a83;--alloy:#996f65;--metal-dark:#492c32;--glyph:#f3d0b0;--incision:#522b34}
.cfx-scene[data-tone="tablet"],.cfx-coin[data-tone="tablet"],.cfx-motes[data-tone="tablet"],.cfx-chain-chip[data-tone="tablet"]{
  --mint:#dfe5ca;--cool:#aebab0;--alloy:#77877a;--metal-dark:#3d5149;--glyph:#e6e6c7;--incision:#3b4c40}
.cfx-scene[data-tone="thing"],.cfx-coin[data-tone="thing"],.cfx-motes[data-tone="thing"],.cfx-chain-chip[data-tone="thing"]{
  --mint:#d0cced;--cool:#aaa2c0;--alloy:#796e8d;--metal-dark:#3d374e;--glyph:#e6ddf2;--incision:#443753}
.cfx-scene[data-tone="sign"],.cfx-coin[data-tone="sign"],.cfx-motes[data-tone="sign"],.cfx-chain-chip[data-tone="sign"],
.cfx-coin[data-tone="positive"],.cfx-motes[data-tone="positive"]{
  --mint:#e1eac3;--cool:#a7c69d;--alloy:#6c937c;--metal-dark:#354f42;--glyph:#f0ebbe;--incision:#305344}
.cfx-scene[data-tone="fail"],.cfx-coin[data-tone="fail"],.cfx-motes[data-tone="fail"],.cfx-chain-chip[data-tone="fail"]{
  --mint:#ffc4a1;--cool:#d8927e;--alloy:#ae6458;--metal-dark:#512d32;--glyph:#f2c4a1;--incision:#56252b}
.cfx-coin[data-tone="severe"],.cfx-motes[data-tone="severe"]{
  --mint:#ecc89d;--cool:#bf9776;--alloy:#9c7257;--metal-dark:#52382d;--glyph:#ffe2b7;--incision:#503224}
.cfx-coin[data-tone="none"]{--mint:#adb5a4;--cool:#8b9b8b;--alloy:#637360;--metal-dark:#383f37;--glyph:#c8cfb9;--incision:#404b40}
.cfx-coin[data-face="skull"].cfx-landed .cfx-emblem{animation:cfx-descend 270ms ease-out}
.cfx-coin[data-face="cultist"].cfx-landed .cfx-emblem{animation:cfx-glow 380ms ease-out}
.cfx-coin[data-face="tablet"].cfx-landed .cfx-emblem{animation:cfx-strike 270ms ease-out}
.cfx-coin[data-face="thing"].cfx-landed .cfx-emblem{animation:cfx-uncurl 370ms ease-out}
.cfx-coin[data-face="sign"].cfx-landed .cfx-emblem{animation:cfx-glow 490ms ease-out}
.cfx-coin[data-face="fail"].cfx-landed .cfx-emblem{animation:cfx-recoil 420ms ease-out}
.cfx-motes[data-tone="fail"] .cfx-mote{border-radius:80% 0;width:3px;height:7px}
.cfx-motes[data-tone="sign"] .cfx-mote{width:2px;height:7px;border-radius:70%}
.cfx-motes[data-tone="tablet"] .cfx-mote{width:3px;height:3px;border-radius:0}

.cfx-result{min-height:164px;width:min(406px,92vw);background:radial-gradient(ellipse 54% 56% at 49% 50%,#192923fa 0%,#14261ffa 50%,#0b1813c4 75%,transparent 100%)}
.cfx-result[data-verdict="failure"]{background:radial-gradient(ellipse 54% 56% at 49% 50%,#302223fa 0%,#271e1ef5 50%,#1c1618b3 75%,transparent 100%)}
.cfx-verdict-frame{display:grid;grid-template-columns:66px minmax(0,1fr);gap:15px;align-items:center;text-align:left;max-width:92%;padding:14px 18px}
.cfx-verdict-frame .cfx-medal{width:66px;height:66px;flex-shrink:0;animation:cfx-verdict-in 245ms ease-out both}
.cfx-medal .cfx-coin-body{animation:none;transform:rotate(-6deg)}
.cfx-medal .cfx-digit{font-size:30px}
.cfx-verdict-body{min-width:0;max-width:240px;overflow-wrap:anywhere}
.cfx-verdict-body .cfx-caption{font-size:12px;max-width:100%;color:#d0c8ac}
.cfx-verdict-word{display:block;color:#e1ebbf;font-family:var(--serif,Georgia,serif);font-size:clamp(26px,2.7vw,35px);font-weight:800;line-height:1.23;letter-spacing:.055em}
.cfx-result[data-verdict="failure"] .cfx-verdict-word{color:#f1c1aa}
.cfx-metrics,.cfx-consequence{font-size:13px;line-height:1.4;color:#eee7d2}
.cfx-metrics{font-variant-numeric:tabular-nums;white-space:pre}
.cfx-consequence{font-size:14px;font-weight:650;margin-top:3px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

.cfx-scene.cfx-compact{width:min(235px,88vw);min-height:109px}
.cfx-compact.cfx-reveal{grid-template-columns:72px minmax(0,1fr);grid-template-rows:1fr 1fr auto;grid-template-areas:'token cap' 'token face' 'token chain';align-content:center;align-items:end;justify-content:center;justify-items:start;padding:20px 22px;column-gap:7px;text-align:left}
.cfx-compact.cfx-reveal .cfx-stage{grid-area:token;width:72px;height:64px;margin:0}
.cfx-compact.cfx-reveal .cfx-caption{grid-area:cap;max-width:100%;font-size:11px;white-space:normal;line-height:1.2;align-self:end}
.cfx-compact.cfx-reveal .cfx-face-name{grid-area:face;font-size:14px;align-self:start;margin-top:4px;white-space:nowrap;min-height:17px}
.cfx-compact.cfx-reveal .cfx-chain{grid-area:chain;margin-top:0;justify-content:start}
.cfx-compact .cfx-well{width:57px;height:57px}
.cfx-compact .cfx-digit{font-size:27px}
.cfx-compact .cfx-bag{width:38px;height:32px;left:-6px;bottom:-1px;opacity:.7}
.cfx-compact.cfx-result{min-height:98px}
.cfx-compact .cfx-verdict-frame{grid-template-columns:47px minmax(0,1fr);gap:9px;max-width:97%;padding:10px 12px}
.cfx-compact .cfx-medal{width:47px;height:47px}
.cfx-compact .cfx-verdict-word{font-size:23px}.cfx-compact .cfx-metrics,.cfx-compact .cfx-consequence{font-size:11px}
.cfx-fast{--roll:220ms;--flight:220ms;--pop:165ms;transition-duration:70ms}
.cfx-still,.cfx-still *,.cfx-still::before,.cfx-still::after,.cfx-still *::before,.cfx-still *::after{animation:none!important;transition:none!important}
.cfx-still .cfx-motes{display:none}
@media(prefers-reduced-motion:reduce){
  .cfx-scene,.cfx-scene *,.cfx-scene::before,.cfx-scene::after,.cfx-scene *::before,.cfx-scene *::after{animation:none!important;transition:none!important}
  .cfx-motes{display:none}
}
@keyframes cfx-appear{from{opacity:0}to{opacity:1}}
@keyframes cfx-flight{
  0%{opacity:0;transform:translate(-50% ,42%) scale(.29) rotate(-25deg)}
  12%{opacity:1}
  48%{transform:translate(3%,-20%) scale(1.10) rotate(8deg)}
  82%{transform:translate(0,4%) scale(.98) rotate(-2deg)}
  100%{opacity:1;transform:translate(0,0) scale(1)}
}
@keyframes cfx-roll{0%{transform:rotateY(-218deg) rotateX(22deg)}44%{transform:rotateY(-90deg) rotateX(-14deg)}81%{transform:rotateY(8deg) rotateX(5deg)}100%{transform:rotateY(0) rotateX(0)}}
@keyframes cfx-bag{0%{transform:rotate(-8deg) scale(1)}25%{transform:rotate(1deg) scale(.95,1.08)}65%{transform:rotate(-12deg) scale(1.04,.96)}100%{transform:rotate(-8deg) scale(1)}}
@keyframes cfx-ring{from{transform:scale(.76);opacity:.55}to{transform:scale(1.42);opacity:0}}
@keyframes cfx-mote{0%{transform:translate(0,0) rotate(var(--tilt));opacity:0}15%{opacity:.85}100%{transform:translate(var(--mx),var(--my)) rotate(var(--tilt));opacity:0}}
@keyframes cfx-strike{0%{transform:translateY(-3px)}38%{transform:translateY(2px)}100%{transform:none}}
@keyframes cfx-descend{from{transform:translateY(-2px) scale(1.045)}to{transform:none}}
@keyframes cfx-glow{from{filter:drop-shadow(0 0 5px var(--mint))}to{filter:drop-shadow(0 1px .5px var(--incision))}}
@keyframes cfx-uncurl{from{transform:rotate(-18deg) scale(.9)}to{transform:none}}
@keyframes cfx-recoil{0%{transform:scale(.88) rotate(9deg)}45%{transform:scale(1.10) rotate(-4deg)}100%{transform:none}}
@keyframes cfx-verdict-in{from{opacity:0;transform:translateX(-9px) rotate(-12deg)}to{opacity:1;transform:translateX(0) rotate(0)}}
.cfx-no-token .cfx-coin,.cfx-no-token .cfx-coin-body,.cfx-no-token .cfx-well::before{animation:none}
.cfx-no-token .cfx-well::before{display:none}
