@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root{color-scheme:dark;font-family:Manrope,Arial,sans-serif;color:#f4f5f7;background:#101217;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #a0baff;outline-offset:5px}button:disabled{cursor:default;opacity:.6}.app{max-width:900px;margin:auto;padding:36px 44px 20px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:42px}.brand{display:flex;gap:11px;align-items:center;color:white;text-decoration:none;font-weight:800;font-size:15px;line-height:1.08;letter-spacing:-.5px}.monogram{font-size:38px;letter-spacing:-6px;padding-right:6px;font-weight:800}.location{display:block;color:#9a9da8;font-size:10px;letter-spacing:1.1px;margin-top:7px}.demo-label{border:1px solid #3c414c;color:#a7acb6;font-size:12px;letter-spacing:1.6px;border-radius:6px;padding:7px 10px}.campaign{display:flex;gap:12px;font-size:12px;letter-spacing:1.4px;font-weight:800;color:#9296a3}.campaign span:first-child{color:#83a4ff}h1{font-size:clamp(42px,7vw,64px);line-height:1.04;letter-spacing:-2.5px;font-weight:800;margin:18px 0 14px}h1 span{color:#5c87ff}.intro{color:#a7abb6;font-size:16px;margin:0 0 28px}.game{border:1px solid #313848;border-radius:24px;background:radial-gradient(ellipse at 50% 28%,#25304f 0%,#191e2a 45%,#181c25 75%);padding:24px;position:relative;overflow:hidden}.game-top{display:flex;justify-content:space-between;gap:12px;font-size:11px;letter-spacing:1.9px;color:#949caf;font-weight:700}.number{font-variant-numeric:tabular-nums}.dice-stage{height:225px;display:flex;align-items:center;justify-content:center;gap:34px;perspective:700px}.die{display:flex;align-items:center;justify-content:center;width:124px;height:124px;border-radius:26px;background:linear-gradient(140deg,#fff,#e5e9f1);color:#3268ff;border:2px solid #fff;box-shadow:inset -7px -8px 0 #c8cedb,0 16px 0 -5px #8993ad,0 30px 35px #090e2170;font-size:65px;font-weight:800;line-height:1;user-select:none}.die-left{transform:rotate(-12deg)}.die-right{transform:translateY(12px) rotate(13deg)}.die span{filter:drop-shadow(0 2px 0 #00000015)}/* Three-second toss: light lift, two turns, then a soft landing. */
.die.rolling{animation:dice-toss-left 3s linear both!important;will-change:transform}
.die-right.rolling{animation-name:dice-toss-right!important;animation-delay:0s!important}
@keyframes dice-toss-left{
  0%{transform:translateY(0) rotateX(0deg) rotateY(0deg) rotateZ(-12deg) scale(1)}
  12%{transform:translateY(-18px) rotateX(15deg) rotateY(-16deg) rotateZ(76deg) scale(1.03)}
  40%{transform:translateY(-9px) rotateX(-12deg) rotateY(14deg) rotateZ(300deg) scale(.98)}
  72%{transform:translateY(-5px) rotateX(8deg) rotateY(-8deg) rotateZ(585deg) scale(1.01)}
  90%{transform:translateY(3px) rotateX(0deg) rotateY(0deg) rotateZ(703deg) scale(.98)}
  96%{transform:translateY(-2px) rotateX(0deg) rotateY(0deg) rotateZ(710deg) scale(1)}
  100%{transform:translateY(0) rotateX(0deg) rotateY(0deg) rotateZ(708deg) scale(1)}
}
@keyframes dice-toss-right{
  0%{transform:translateY(12px) rotateX(0deg) rotateY(0deg) rotateZ(13deg) scale(1)}
  12%{transform:translateY(-7px) rotateX(-12deg) rotateY(15deg) rotateZ(-65deg) scale(1.03)}
  40%{transform:translateY(1px) rotateX(14deg) rotateY(-12deg) rotateZ(-280deg) scale(.98)}
  72%{transform:translateY(6px) rotateX(-9deg) rotateY(8deg) rotateZ(-570deg) scale(1.01)}
  90%{transform:translateY(15px) rotateX(0deg) rotateY(0deg) rotateZ(-699deg) scale(.98)}
  96%{transform:translateY(10px) rotateX(0deg) rotateY(0deg) rotateZ(-709deg) scale(1)}
  100%{transform:translateY(12px) rotateX(0deg) rotateY(0deg) rotateZ(-707deg) scale(1)}
}
.result{text-align:center;min-height:83px;padding:4px 0 12px}.result-title{display:block;font-size:24px;font-weight:800;letter-spacing:-.8px}.result p{color:#a8afbf;font-size:14px;margin:8px 0 0}.result.won .result-title{color:#a7f5bf}.attempts{display:flex;justify-content:space-between;align-items:center;color:#bdc3d1;font-size:14px;margin:8px 0 16px}.attempts strong{background:#303a50;min-width:35px;padding:5px 10px;border-radius:8px;text-align:center;color:white;font-size:16px}.roll-button{border:0;background:#3268ff;color:white;padding:19px 20px;width:100%;border-radius:12px;font-weight:800;font-size:17px;box-shadow:0 4px 0 #1c43b3;transition:background .2s,transform .2s}.roll-button:hover:not(:disabled){background:#4577ff}.roll-button:active:not(:disabled){transform:translateY(2px)}.roll-button span{margin-right:7px}.demo-note{font-size:12px;color:#929aaf;text-align:center;margin:17px 0 0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.section-head h2{font-size:20px;letter-spacing:-.7px;margin:0}.section-head>span{font-size:10px;font-weight:800;color:#8b93a4;letter-spacing:1px}.prizes{margin-top:34px}.prize-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.prize-grid article{display:flex;gap:12px;align-items:center;border:1px solid #2b303b;border-radius:13px;padding:18px 13px;background:#191c23;transition:border-color .2s,background .2s}.prize-grid article.active{border-color:#7fabff;background:#202d48}.prize-icon{font-size:29px;min-width:34px;text-align:center}.prize-icon.letter{font-weight:800;color:#7b9eff;font-size:34px}h3{font-size:14px;margin:0 0 4px}.prize-grid p{font-size:12px;color:#a6abb7;margin:0;line-height:1.5}.rules{margin-top:34px;border-top:1px solid #2a2e39;padding-top:28px}.rules p{font-size:14px;color:#a6abb7;line-height:1.7;max-width:500px}.receipt-examples{display:flex;gap:10px;margin:20px 0}.receipt-examples>span{flex:1;font-size:18px;font-weight:700;padding:14px;background:#1a1e27;border-radius:10px}.receipt-examples b{display:block;font-size:12px;font-weight:500;color:#9da6b8;margin-top:7px}.text-button{background:transparent;border:0;color:#91acff;font-size:14px;font-weight:700;padding:8px 0;text-decoration:underline;text-underline-offset:5px}footer{display:flex;justify-content:space-between;border-top:1px solid #2a2e39;margin-top:35px;padding:22px 0;color:#7e8595;font-size:11px;letter-spacing:1px}footer p{margin:0;letter-spacing:0}dialog{width:calc(100% - 32px);max-width:420px;border:1px solid #414b60;border-radius:22px;padding:25px;background:#1b202b;color:white;box-shadow:0 20px 80px #0008}dialog::backdrop{background:#060912c9;backdrop-filter:blur(5px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{font-size:23px;margin:0}.close{background:#303746;border:0;border-radius:50%;width:36px;height:36px;color:white;font-size:25px}dialog p{color:#abb4c7;line-height:1.6;font-size:14px}dialog label{display:block;font-size:14px;margin:22px 0 10px}input{width:100%;border:1px solid #57617a;background:#111620;color:white;padding:15px;border-radius:10px;font-size:21px}.calculation{color:#93b0ff;padding:16px 0;font-weight:700}.dialog-note{font-size:12px;margin-bottom:0}.confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}.confetti i{position:absolute;top:-15px;width:7px;height:12px;background:var(--color);left:var(--left);animation:fall 1.8s ease-in forwards;animation-delay:var(--delay)}@keyframes fall{to{transform:translateY(650px) rotate(630deg);opacity:0}}@media(min-width:740px){.app main{display:grid;grid-template-columns:1.05fr 1fr;column-gap:38px}.campaign,h1,.intro,footer{grid-column:1/-1}.game{grid-row:4/6}.prizes{grid-column:2;margin-top:0}.prize-grid{grid-template-columns:1fr 1fr}.rules{grid-column:2;margin-top:24px;padding-top:23px}.section-head>span{font-size:9px}.dice-stage{height:225px}.prize-grid article{padding:13px 10px;gap:8px}.prize-icon{font-size:25px}.receipt-examples{gap:7px}.receipt-examples>span{font-size:16px;padding:11px}.result-title{font-size:22px}h1{font-size:66px}header{margin-bottom:44px}}@media(max-width:739px){.app{max-width:480px;padding:24px 20px 10px}.prize-grid{grid-template-columns:1fr 1fr}.game{padding:20px}.dice-stage{height:215px}.die{width:112px;height:112px;font-size:61px;border-radius:24px}.campaign{font-size:10px;letter-spacing:1.15px}.section-head>span{font-size:9px}header{margin-bottom:34px}h1{font-size:49px}.prize-grid article{padding:16px 12px}footer{font-size:9px}}@media(max-width:350px){.app{padding-inline:15px}h1{font-size:42px}.die{width:97px;height:97px;font-size:51px}.dice-stage{gap:24px}.prize-grid article{gap:6px;padding:13px 9px}.prize-icon{font-size:25px;min-width:28px}.section-head{flex-wrap:wrap}.roll-button{font-size:16px}.game-top{font-size:9px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

.brand-image{display:block;width:64px;height:64px;object-fit:contain;border-radius:12px}.dice-logo{display:block;width:87px;height:87px;object-fit:contain;border-radius:16px}.prize-logo{display:block;width:34px;height:34px;object-fit:contain;border-radius:7px}.prize-grid [data-face="5"] p{max-width:120px}@media(max-width:739px){.dice-logo{width:78px;height:78px}.brand-image{width:56px;height:56px}}@media(max-width:350px){.dice-logo{width:66px;height:66px}}

.dice-logo,.prize-logo{border-radius:0}.die span:has(.dice-logo){filter:none}

/* Center the visible G bounds (184,288)-(1075,1094) inside its 1254px canvas. */
.die{--g-size:78px}
.die>span:has(.dice-logo){display:flex;align-items:center;justify-content:center;width:var(--g-size);height:var(--g-size)}
.die .dice-logo{flex:none;width:calc(var(--g-size)*1.4074074);height:calc(var(--g-size)*1.4074074);max-width:none;transform:translate(-0.19936%,-5.10367%)}
@media(max-width:739px){.die{--g-size:70px}}
@media(max-width:350px){.die{--g-size:60px}}

.motion-control{display:flex;align-items:center;justify-content:center;gap:9px;font-size:13px;color:#b4bed0;margin-top:19px;cursor:pointer}.motion-control input{width:18px;height:18px;margin:0;padding:0;accent-color:#3268ff;cursor:pointer}

/* Explicit appearance avoids native mobile button bevels. */
button{appearance:none;-webkit-appearance:none;background-clip:padding-box}
.roll-button,.secondary-button,.deal-button{background-image:none;text-shadow:none}
.secondary-button{font:inherit;font-size:13px;font-weight:700;line-height:1.4;border:1px solid #46618e;background-color:#273b5c;color:#dbe8ff;border-radius:10px;padding:11px 14px;cursor:pointer}
@media(hover:none){.roll-button:hover:not(:disabled){background-color:#3268ff}}

.roll-rewards{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:12px 0 4px}.roll-reward{padding:7px 11px;border:1px solid;border-radius:10px;font-size:13px;font-weight:700;line-height:1.4}.roll-reward.symbols{color:#b9daff;background:#203650;border-color:#5d91ca}.roll-reward.coins{color:#f6d69e;background:#3b3021;border-color:#9a7741}.result p:empty{display:none}
