/* Ежедневный бросок кубика: полноэкранная сцена (стакан, кубик, платформа). Бесплатный бросок, приз считает сервер. */
.dice { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; overflow: hidden; color: #fff6f0; font-family: var(--text, system-ui, sans-serif);
  background: radial-gradient(ellipse at 50% 58%, rgba(255, 43, 214, .28), transparent 55%), radial-gradient(ellipse at 14% 30%, rgba(255, 168, 40, .3), transparent 34%), linear-gradient(#17111c, #0c090f);
  padding: max(10px, env(safe-area-inset-top), calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px))) 12px max(12px, env(safe-area-inset-bottom)); }
.dice::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 38px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 72px); pointer-events: none; }
.dice-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; z-index: 2; }
.dice-btn { font-family: var(--pix); font-size: 10px; color: #fff6f0; background: linear-gradient(#4a4452, #2a2630); border: 2px solid #14100f; border-radius: 6px; padding: 9px 12px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15), 0 2px 0 #000; }
.dice-brand { font-family: "Permanent Marker", var(--pix); font-size: 22px; letter-spacing: 1px; color: #f4f1ea; text-shadow: 2px 2px 0 #000, 0 0 12px rgba(255, 43, 214, .7); }
.dice-brand b { color: #ff2bd6; font-weight: normal; }
.dice-title { position: relative; z-index: 2; margin: 10px auto 0; width: min(100%, 360px); text-align: center; padding: 10px 14px; border: 2px solid #ff2bd6; border-radius: 12px; background: rgba(12, 8, 16, .75); box-shadow: 0 0 16px rgba(255, 43, 214, .55), inset 0 0 0 2px rgba(255, 210, 63, .25); }
.dice-title h2 { margin: 0; font-family: var(--pix); font-size: 14px; color: #ffd23f; text-shadow: 2px 2px 0 #000; }
.dice-title p { margin: 6px 0 0; font-size: 13px; color: #cdbfd2; }
.dice-stage { position: relative; flex: 1; min-height: 0; z-index: 1; perspective: 700px; display: flex; align-items: center; justify-content: center; }
.dice-platform { position: absolute; left: 50%; bottom: 8%; width: min(86%, 340px); aspect-ratio: 3 / 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, #2a1730 0 55%, #1b1220 56% 70%, #5b5560 71% 78%, #2a252e 79%); border: 3px solid #ff2bd6; box-shadow: 0 0 28px 4px rgba(255, 43, 214, .75), inset 0 0 22px rgba(255, 43, 214, .55); }
.dice-platform::after { content: '♛'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: rgba(255, 168, 40, .5); text-shadow: 0 0 10px rgba(255, 168, 40, .6); }
.dice-cube-wrap { position: relative; width: 100px; height: 100px; transform-style: preserve-3d; transform: translateY(8%) rotateX(-24deg) rotateY(-30deg); }
.dice-cube-wrap.hide { opacity: 0; }
.dice-cube { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.dice-face { position: absolute; inset: 0; background: center / 100% 100% no-repeat; backface-visibility: hidden; border-radius: 12px; }
.dice-face:nth-child(1) { transform: translateZ(50px); }
.dice-face:nth-child(2) { transform: rotateY(90deg) translateZ(50px); }
.dice-face:nth-child(3) { transform: rotateX(90deg) translateZ(50px); }
.dice-face:nth-child(4) { transform: rotateX(-90deg) translateZ(50px); }
.dice-face:nth-child(5) { transform: rotateY(-90deg) translateZ(50px); }
.dice-face:nth-child(6) { transform: rotateY(180deg) translateZ(50px); }
.dice-shadow { position: absolute; left: 50%; bottom: calc(8% + 22px); width: 120px; height: 22px; margin-left: -60px; border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(5px); }
.dice-cup { position: absolute; left: 50%; top: 4%; width: 130px; height: 120px; margin-left: -65px; transform-origin: 50% 90%; z-index: 3; transition: transform .7s cubic-bezier(.4, 1.3, .5, 1); }
.dice-cup i { position: absolute; inset: 0; display: block; background: linear-gradient(90deg, #0d0a10, #2b2430 38%, #17121c 70%, #0a080c); border-radius: 8px 8px 22px 22px / 8px 8px 30px 30px; box-shadow: inset 0 0 0 2px rgba(255, 210, 63, .3), 0 0 18px rgba(255, 43, 214, .45); }
.dice-cup i::before { content: ''; position: absolute; left: -2px; right: -2px; top: -12px; height: 26px; border-radius: 50%; background: #05030a; border: 3px solid #ff2bd6; box-shadow: 0 0 12px rgba(255, 43, 214, .8); }
.dice-cup i::after { content: '♛ LFT'; position: absolute; inset: 34px 0 0; text-align: center; font-family: "Permanent Marker", var(--pix); font-size: 22px; color: #ffd23f; text-shadow: 2px 2px 0 #000; line-height: 1.1; white-space: pre; }
.dice-cup.shake { animation: dice-shake .16s linear infinite; }
.dice-cup.away { transform: translate(78px, -66px) rotate(48deg); }
@keyframes dice-shake { 0% { transform: translate(-6px, 0) rotate(-7deg); } 50% { transform: translate(6px, -6px) rotate(7deg); } 100% { transform: translate(-6px, 0) rotate(-7deg); } }
.dice-deco { position: absolute; pointer-events: none; z-index: 0; }
.dice-lamp { left: 2%; top: 6%; width: 38px; height: 54px; border-radius: 10px 10px 18px 18px; background: radial-gradient(circle at 50% 55%, #fff3b0, #ffa828 55%, #7a4a10); box-shadow: 0 0 36px 12px rgba(255, 168, 40, .55); border: 3px solid #3a2f26; }
.dice-can { left: 3%; bottom: 8%; width: 34px; height: 76px; border-radius: 8px; background: linear-gradient(90deg, #8f8a96, #e7e3ea 40%, #7b7681); border-top: 14px solid #3a2f26; box-shadow: inset 0 -30px 0 #ff2bd6; }
.dice-coins { right: 4%; bottom: 9%; width: 52px; height: 52px; border-radius: 50%; background: repeating-linear-gradient(#ffd23f 0 6px, #b88a14 6px 9px); box-shadow: 0 0 18px rgba(255, 210, 63, .5); transform: scaleY(.55); }
.dice-tag { right: 4%; top: 36%; font-family: "Permanent Marker", var(--pix); font-size: 40px; color: rgba(255, 143, 224, .35); transform: rotate(-8deg); }
.dice-panel { position: relative; z-index: 2; padding: 12px; border: 3px solid #ffbf1f; border-radius: 14px; background: rgba(12, 8, 16, .82); box-shadow: 0 0 22px rgba(255, 43, 214, .45), inset 0 0 0 2px rgba(255, 43, 214, .5); }
.dice-prize { min-height: 54px; display: grid; place-items: center; text-align: center; font-family: var(--pix); font-size: 20px; color: #ffd23f; text-shadow: 3px 3px 0 #000, 0 0 16px rgba(255, 210, 63, .7); }
.dice-prize small { display: block; margin-top: 6px; font-family: var(--text, system-ui); font-size: 12px; color: #cdbfd2; text-shadow: none; }
.dice-prize.pop { animation: dice-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes dice-pop { from { transform: scale(.4); opacity: 0; } }
.dice-hint { text-align: center; font-size: 13px; color: #cdbfd2; margin: 2px 0 8px; }
.dice-go { width: 100%; font-family: var(--pix); font-size: 14px; padding: 16px; color: #2a1a00; border: 3px solid #14100f; border-radius: 12px; background: linear-gradient(#ffe27a, #ffbf1f); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55), 0 0 0 3px #ff2bd6, 0 4px 0 #000; }
.dice-go:disabled { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .dice-cup.shake { animation: none; } .dice-cup { transition: none; } .dice-prize.pop { animation: none; } }
@media (max-height: 700px) { .dice-title p { display: none; } .dice-cup { width: 104px; height: 96px; margin-left: -52px; } }
