body {
    background-color: #222;
    color: white;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', sans-serif;
}

#gameWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 700px;
    transform-origin: center center;
}

.data-panel {
    width: 480px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    margin-left: 120px;
}

.counter-box {
    background: #000;
    border: 2px solid #555;
    padding: 5px 15px;
    border-radius: 4px;
    text-align: right;
    width: 140px;
}

.counter-label {
    font-size: 12px;
    color: #aaa;
    display: block;
}

.counter-value {
    font-size: 28px;
    color: #ff0000;
    font-weight: bold;
    font-family: 'Impact', sans-serif;
    letter-spacing: 2px;
}

.main-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

#clockLamp {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #333;
    border: 5px solid #555;
    position: relative;
    box-shadow: inset 0 0 20px #000;
    transition: all 0.2s;
    opacity: 0.8;
}

#clockLamp::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 35px;
    background: #111;
    transform: translate(-50%, -100%) rotate(0deg);
    transform-origin: bottom center;
}

#clockLamp::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 25px;
    background: #111;
    transform: translate(-50%, -100%) rotate(45deg);
    transform-origin: bottom center;
}

#clockCenter {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

#clockLamp.active {
    background: #fff;
    border-color: #d4af37;
    box-shadow: 0 0 30px #d4af37, 0 0 60px orange;
}

#clockLamp.active::before,
#clockLamp.active::after {
    background: #000;
}

.container {
    position: relative;
    width: 480px;
    height: 360px;
    border: 6px solid #d4af37;
    border-radius: 4px;
    background-color: #ffffff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
}

#slotCanvas {
    z-index: 1;
}

#shadowOverlay {
    z-index: 2;
    pointer-events: none;
}

.ui-panel {
    width: 480px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 5px;
    background: #222;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 120px;
}

.btn-group {
    display: flex;
    justify-content: space-between;
    width: 480px;
    margin-top: 10px;
    margin-left: 120px;
}

button {
    padding: 10px 0;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 8px;
    border: 3px solid #555;
    transition: all 0.1s;
}

button:active {
    transform: translateY(2px);
}

#startBtn {
    width: 100%;
    margin-top: 10px;
    background-color: #d32f2f;
    color: white;
    border-color: #a00000;
    height: 50px;
}

#startBtn:disabled {
    background-color: #555;
    border-color: #333;
    color: #888;
    transform: none;
}

.stop-btn {
    width: 32%;
    background-color: #1976d2;
    color: white;
    border-color: #004ba0;
    height: 60px;
}

.stop-btn:disabled {
    background-color: #444;
    color: #888;
    border-color: #222;
    transform: none;
}