﻿*{box-sizing:border-box}
body{margin:0;background:#10182d;color:#f1f5ff;font-family:Arial,sans-serif}
header{text-align:center;padding:30px 15px;background:linear-gradient(130deg,#172d50,#10182d)}
header h1{font-size:36px;letter-spacing:5px;margin:0;color:#f7c948}
header p{color:#9eacc9;letter-spacing:3px;font-size:12px}
main{max-width:1050px;margin:auto;padding:18px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}
.stats div,.panel{background:#1b2740;border:1px solid #34415d;border-radius:13px;padding:16px}
.stats div{text-align:center}
.stats strong{display:block;font-size:26px;color:#f7c948}
.stats span{font-size:12px;color:#aebbd2}
.panel{margin-bottom:18px}
h2{font-size:16px;color:#f7c948;margin:0 0 16px}
input,select{padding:12px;border:1px solid #475675;border-radius:8px;background:#10182d;color:white;min-width:0}
form,.controls,.actions{display:flex;gap:10px;flex-wrap:wrap}
form input{flex:1}
button{padding:12px 17px;border:0;border-radius:8px;background:#344967;color:white;font-weight:bold;cursor:pointer}
button.primary,form button{background:#e4a923;color:#151c2d}
button:disabled{opacity:.5}
button:hover{filter:brightness(1.15)}
#analysis,#currentStatus{margin:14px 0;color:#b8c5dc;font-size:14px}
.controls{margin-bottom:15px}
.controls label{display:grid;gap:7px;flex:1;font-size:13px;color:#b8c5dc}
.actions{margin-top:10px}
.ball{width:43px;height:43px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center;font-weight:bold;font-size:13px;color:#182033;border:3px solid #ffffff55;box-shadow:inset -4px -5px 7px #0004,0 3px 8px #0006}
.c1{background:radial-gradient(circle at 30% 25%,#fff,#f8d65c 35%,#d18b12)}
.c2{background:radial-gradient(circle at 30% 25%,#fff,#71d7ff 35%,#1679b7)}
.c3{background:radial-gradient(circle at 30% 25%,#fff,#ff9292 35%,#c52d49)}
.c4{background:radial-gradient(circle at 30% 25%,#fff,#a9f09d 35%,#32984a)}
.c5{background:radial-gradient(circle at 30% 25%,#fff,#d8a8ff 35%,#7934b5)}
.c6{background:radial-gradient(circle at 30% 25%,#fff,#ffb96e 35%,#c25a18)}
.c7{background:radial-gradient(circle at 30% 25%,#fff,#d2e2ef 35%,#71869e)}
.all-balls,.frequencies{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.all-balls .ball{width:35px;height:35px;font-size:11px}
.group{padding:14px 0;border-bottom:1px solid #34415d}
.group h3{color:#f7c948;margin:0 0 12px}
.selection{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}
.selection-label{width:95px;font-size:12px;color:#b8c5dc}
.selection .ball{opacity:0;transform:translateY(-45px) rotate(0deg)}
.selection .ball.fallen{opacity:1;transform:translateY(0) rotate(720deg);transition:transform .65s cubic-bezier(.2,.8,.2,1),opacity .4s}
#history{margin-top:12px;font-size:13px;color:#bdc9de;line-height:2}
footer{text-align:center;padding:25px;color:#8493ad;font-size:12px}
@media(max-width:520px){main{padding:10px}.stats{grid-template-columns:repeat(2,1fr)}header h1{font-size:27px}.ball{width:37px;height:37px}.selection-label{width:100%}}
