@font-face{font-family:'CustomFont';src:url('../assets/fonts/font.ttf') format('truetype')}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'CustomFont',sans-serif;background:linear-gradient(135deg,#e0e0e0,#34495e);color:#e0e0e0;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;overflow-y:auto;touch-action:manipulation;padding:16px 0 120px}
.game-container{width:90vw;max-width:400px;background:#1e1e1e;border-radius:15px;padding:14px;box-shadow:0 10px 20px rgba(0,0,0,.6);text-align:center;position:relative}
.home-link{position:absolute;top:12px;right:12px;width:32px;height:32px;background:#333;border:2px solid #444;border-radius:50%;display:flex;align-items:center;justify-content:center;text-decoration:none;color:#ecf0f1;font-size:.9em;z-index:10}
.home-link:active{background:#1EE6FF;border-color:#1EE6FF;transform:scale(.9)}
.top-bar{display:flex;justify-content:space-between;margin-bottom:10px}
.stat{background:#2a2a2a;padding:10px 16px;border-radius:10px;font-size:.9rem;color:#e6e6e6;flex:1;text-align:center;border:1px solid #333}
.screen{width:100%;height:150px;background:#111;border:2px solid #333;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-bottom:10px;overflow:hidden;position:relative}
.big-num{font-size:3em;font-weight:bold;color:#66FF0E;text-shadow:0 0 30px rgba(102,255,14,.4)}
.big-num.crashed{color:#F50055;text-shadow:0 0 30px rgba(245,0,85,.4)}
.big-num.cashed{color:#FFE300;text-shadow:0 0 30px rgba(255,227,0,.4)}
.bar-wrap{width:90%;height:8px;background:#222;border-radius:4px;margin-top:10px;overflow:hidden}
.bar{height:100%;width:0%;background:#66FF0E;border-radius:4px;transition:width .05s linear}
.bar.crash{background:#F50055}
.bet-bar{display:flex;justify-content:center;align-items:center;gap:10px;margin-bottom:10px}
.bet-btn{width:36px;height:36px;background:#333;border:2px solid #555;border-radius:50%;color:#ecf0f1;font-size:1.3em;cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:'CustomFont',sans-serif}
.bet-btn:active{background:#1EE6FF;color:#1e1e1e}
.bet-display{background:#2a2a2a;padding:8px 16px;border-radius:10px;font-size:.95rem;color:#FFE300;font-weight:bold;border:1px solid #333}
.status{font-size:.9rem;margin-bottom:6px;color:#aaa}
.result{font-size:1em;font-weight:bold;display:none;margin-bottom:8px;min-height:1.2em}
.result.win{color:#66FF0E}
.result.lose{color:#F50055}
.actions{display:flex;gap:8px;margin-bottom:10px}
.btn{flex:1;padding:16px;border:none;border-radius:12px;font-size:1.2em;font-weight:bold;cursor:pointer;font-family:'CustomFont',sans-serif;transition:transform .15s;letter-spacing:1px}
.btn:active{transform:scale(.95)}
.btn.go{background:linear-gradient(145deg,#27ae60,#2ecc71);color:#fff;border:2px solid #2ecc71}
.btn.go:disabled{background:#444;color:#777;border-color:#555}
.btn.cashout{background:linear-gradient(145deg,#f39c12,#f1c40f);color:#1e1e1e;border:2px solid #f1c40f;animation:pulse .8s ease infinite}
@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
.btn.cashout:active{transform:scale(.95)}
.history{max-height:50px;overflow-y:auto;font-size:.7em;color:#888;text-align:center;padding:6px;background:#151515;border-radius:8px;border:1px solid #2a2a2a;display:flex;flex-wrap:wrap;gap:4px;justify-content:center}
.history::-webkit-scrollbar{width:3px}
.history::-webkit-scrollbar-thumb{background:#444;border-radius:2px}
.h-item{padding:2px 6px;border-radius:4px}
.h-win{background:rgba(102,255,14,.15);color:#66FF0E}
.h-lose{background:rgba(245,0,85,.15);color:#F50055}
*:focus,*:active{outline:none;-webkit-tap-highlight-color:transparent}
footer{display:flex;flex-direction:column;justify-content:center;align-items:center;color:#ecf0f1;font-size:.8em;position:fixed;bottom:4px;left:50%;transform:translateX(-50%);width:calc(100% - 40px);padding:10px 20px;box-sizing:border-box;background:#1e1e1e;border-radius:10px;box-shadow:0 4px 8px rgba(0,0,0,.5);z-index:1000}
.footer-content{text-align:center;border-top:1px solid #444;padding-top:10px}
.footer-links{text-align:center;margin-top:10px}
.terms-link{color:#8a2be2;text-decoration:none}
@media(max-width:420px){.big-num{font-size:2.4em}.screen{height:130px}}
