body {
    margin: 0;
    padding: 20px;
    background: #0a0a0a;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #4fc3f7;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
}

canvas {
    border: 2px solid #333;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: block;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    color: #4fc3f7;
    font-weight: 500;
    font-size: 14px;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #333;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4fc3f7;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(79, 195, 247, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4fc3f7;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(79, 195, 247, 0.3);
}

.value {
    color: #fff;
    font-size: 12px;
    opacity: 0.8;
}

.stats {
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 14px;
}

.info {
    background: rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.rule {
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    border-left: 3px solid #4fc3f7;
}

.rule h4 {
    margin: 0 0 5px 0;
    color: #4fc3f7;
}

.rule p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}