.chance-stage{position:relative;overflow:hidden;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:290px;border:1px solid #b9a0e32c;border-radius:26px;background:radial-gradient(ellipse at 50% 30%,#60437a66,transparent 70%),linear-gradient(145deg,#281c37,#12101d);margin:18px 0 20px;padding:26px 16px 18px}
.coin-stage{background:radial-gradient(ellipse at 50% 25%,#e8b75044,transparent 65%),linear-gradient(150deg,#332720,#14101e)}
.chance-orbit{position:absolute;z-index:-1;width:215px;height:215px;border:1px solid #d8b98135;border-radius:50%;box-shadow:0 0 0 24px #c6aee608,0 0 0 55px #c6aee605;transform:rotateX(40deg)}
.chance-won{border-color:#e7c68077;box-shadow:inset 0 0 50px #dfb86710}
.chance-spark{position:absolute;color:#e9ca82;font-size:25px;opacity:.8}.chance-spark.one{left:17%;top:40px}.chance-spark.two{right:17%;top:90px;font-size:35px}
.coin-object{position:relative;width:160px;height:160px;transform-style:preserve-3d;transition:transform 1.4s cubic-bezier(.14,.62,.22,1);margin:15px 0 30px}
.coin-face{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;border-radius:50%;border:9px solid #eebf6c;outline:2px solid #f5d788;outline-offset:-15px;background:radial-gradient(circle at 30% 20%,#ffe8a8,#d69f39 60%,#a56624);box-shadow:inset 0 0 0 3px #97652977,inset 0 10px 15px #fff6,0 14px 25px #0007;backface-visibility:hidden;color:#754716;text-shadow:0 2px 1px #ffe59d}
.coin-face>span{font-size:67px;line-height:1}.coin-face>b{font-size:14px;letter-spacing:3px}.coin-tails{transform:rotateY(180deg);background:radial-gradient(circle at 30% 20%,#fff2bb,#caa04c 60%,#8d5d29)}
.chance-caption{text-align:center;color:#e4d5f0;font-size:14px;font-weight:650;line-height:1.5;min-height:21px;margin:0}
.chance-choices{display:grid;gap:12px;margin-bottom:18px}.coin-choices{grid-template-columns:1fr 1fr}.dice-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
.chance-choice{display:flex;flex-direction:column;align-items:center;gap:7px;padding:16px 10px;border:1px solid #ae8fd23a;border-radius:17px;background:#1c1728;color:#cbbbdc;cursor:pointer;min-width:0;transition:background .2s,border-color .2s,transform .2s}
.chance-choice.chosen{background:linear-gradient(150deg,#5b3f71,#352341);border-color:#bc90e5;color:#fff;box-shadow:inset 0 0 15px #c497ee12}
.coin-choices .chance-choice.chosen{background:linear-gradient(150deg,#69522e,#332438);border-color:#dfb877}
.chance-choice>span{font-size:27px;font-weight:800;line-height:1.2}.chance-choice>b{font-size:14px}.chance-choice>small{font-size:11px;color:#b7a4c9;white-space:nowrap}.chance-choice.chosen>small{color:#ead8f7}
.chance-choice:focus-visible{outline:2px solid #e9c886;outline-offset:3px}.chance-choice:disabled{cursor:wait;opacity:.65}
.dice-pair{display:flex;align-items:center;justify-content:center;gap:28px;padding:18px 0 13px;filter:drop-shadow(0 20px 18px #0006)}
.chance-die{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:7px;width:95px;height:95px;padding:18px;border-radius:21px;background:linear-gradient(135deg,#fff,#ddd3e9 55%,#b9a5cd);border:2px solid #f6ebff;box-shadow:inset -7px -7px 0 #8a75a940,inset 5px 5px 2px #fff7,5px 8px 0 #5a476c;transform:rotate(-12deg);box-sizing:border-box}
.chance-die:nth-child(2){transform:rotate(12deg);background:linear-gradient(135deg,#dec3ff,#9d72d1 55%,#754bab);border-color:#d8b8fa;box-shadow:inset -7px -7px 0 #49326240,inset 4px 4px 2px #e1c0ff66,5px 8px 0 #382445}
.chance-die>i{display:block;border-radius:50%;min-width:0;min-height:0}.chance-die>i.pip{background:#493058;box-shadow:inset 1px 1px 2px #24163066,0 1px 1px #fff8}.chance-die:nth-child(2)>i.pip{background:#f6eaff;box-shadow:inset 1px 1px 2px #bea1d3,0 1px 1px #463455}
.dice-total{text-align:center;margin:13px 0 12px}.dice-total>small{display:block;font-size:11px;color:#b89bcd;text-transform:uppercase;letter-spacing:2px}.dice-total>strong{display:block;font-size:40px;line-height:1.15;color:#edddff}
.dice-sums{display:flex;gap:5px;margin:0 0 20px}.dice-sums>span{display:grid;place-items:center;flex:1;min-width:0;padding:8px 0;border:1px solid #a084bc22;border-radius:8px;background:#17121f;color:#736283;font-size:12px;font-weight:700}.dice-sums>span.in-range{background:#4c346733;color:#d7b9f1;border-color:#9771bc55}.dice-sums>span.last-sum{border-color:#efc88b;color:#f8dca7;box-shadow:0 0 12px #e3bb6e22}
.rolling>.chance-die{animation:chance-dice-tumble .72s ease-in-out}.rolling>.chance-die:nth-child(2){animation-direction:reverse}
@keyframes chance-dice-tumble{0%{transform:translateY(0) rotate(-12deg) scale(1)}25%{transform:translateY(-25px) rotate(95deg) scale(.9)}60%{transform:translateY(-9px) rotate(210deg) scale(1.07)}100%{transform:translateY(0) rotate(348deg) scale(1)}}
.mode-card.coin{background:linear-gradient(140deg,#685130,#292035)}.mode-card.dice{background:linear-gradient(140deg,#583b7b,#292039)}.mode-coin-art{position:absolute;right:18px;bottom:18px;width:70px;height:70px;display:grid;place-items:center;border-radius:50%;border:6px solid #e6b864;background:radial-gradient(circle at 25% 20%,#ffe7a4,#b47c2c);color:#805319;font-size:38px;box-shadow:0 13px 18px #0005,inset 0 0 0 2px #9e6c3299;transform:rotate(-18deg)}
.mode-dice-art{position:absolute;right:17px;bottom:19px;display:flex;gap:5px}.mode-dice-art>.chance-die{width:51px;height:51px;gap:3px;padding:9px;border-radius:12px;box-shadow:inset -4px -4px 0 #8a75a940,3px 5px 0 #4b355c}.mode-dice-art>.chance-die:nth-child(2){margin-top:15px;box-shadow:inset -4px -4px 0 #49326240,3px 5px 0 #382445}
@media(max-width:640px){.chance-stage{min-height:265px}.chance-choices{gap:9px}.chance-choice{padding:15px 5px}.chance-choice>b{font-size:12px}.chance-choice>small{font-size:10px}.dice-choices .chance-choice>span{font-size:24px}.dice-pair{gap:22px}.chance-die{width:87px;height:87px;padding:16px;gap:6px}.mode-card.coin p,.mode-card.dice p{max-width:65%}}
@media(max-width:360px){.chance-choice>small{font-size:9px}.chance-choice>b{font-size:11px}.chance-caption{font-size:12px}.dice-sums{gap:3px}.dice-sums>span{font-size:10px}.mode-dice-art{right:11px}.mode-dice-art>.chance-die{width:42px;height:42px;padding:7px;gap:2px}.mode-coin-art{width:58px;height:58px;right:12px}}
@media(prefers-reduced-motion:reduce){.coin-object{transition:none}.rolling>.chance-die{animation:none}}
