* { box-sizing: border-box; }
body {
    background-color: #050505;
    color: #0ff;
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}
.app-container {
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: linear-gradient(180deg, #111, #222);
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 50px #000;
}
.screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    justify-content: center;
    overflow-y: auto;
}
.hidden { display: none !important; }
h2 { text-align: center; color: #f0f; font-size: 2.2rem; margin: 0 0 20px 0; text-shadow: 0 0 10px #f0f; }
label { margin-top: 15px; display: block; font-size: 1.1rem; color: #ff0; text-shadow: 0 0 5px #ff0; }
.time-inputs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-top: 10px;
}
.time-inputs span {
    font-size: 2rem;
    color: #0ff;
    font-weight: bold;
}
input[type="number"], input[type="text"] {
    width: 100%;
    background: #000;
    color: #0ff;
    border: 2px solid #0ff;
    padding: 15px;
    font-size: 1.2rem;
    font-family: inherit;
    border-radius: 5px;
    outline: none;
    text-align: center;
}
input[type="text"] {
    margin-top: 10px;
    text-align: left;
}
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}
.check-btn {
    background: #000;
    border: 2px solid #f0f;
    padding: 10px;
    border-radius: 5px;
    color: #fff;
    text-align: center;
    font-size: 0.8rem;
    margin: 0;
    cursor: pointer;
    text-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.check-btn input[type="checkbox"] {
    display: none;
}
.check-btn:has(input:checked) {
    background: #f0f;
    color: #000;
    font-weight: bold;
    box-shadow: 0 0 10px #f0f;
}
.custom-group {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-top: 10px;
}
.custom-group input[type="checkbox"] {
    width: 35px;
    height: 35px;
    accent-color: #f0f;
    cursor: pointer;
}
.emoji-wrapper {
    position: relative;
    margin-top: 10px;
}
#custom-emoji {
    width: 60px;
    text-align: center;
    padding: 15px 5px;
    margin-top: 0;
    cursor: pointer;
}
#emoji-picker {
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    border: 2px solid #0ff;
    border-radius: 5px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 10px;
    z-index: 100;
    box-shadow: 0 5px 15px #000;
    width: max-content;
    margin-top: 5px;
}
#emoji-picker span {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    text-align: center;
    transition: 0.2s;
}
#emoji-picker span:hover {
    transform: scale(1.2);
    background: #222;
    border-radius: 5px;
}
button {
    background-color: #000;
    color: #0ff;
    border: 2px solid #0ff;
    padding: 15px;
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 5px;
    text-transform: uppercase;
}
button:active { background-color: #0ff; color: #000; }
#save-btn { border-color: #0f0; color: #0f0; margin-top: 30px; }
#save-btn:active { background-color: #0f0; color: #000; }
.display {
    background-color: #000;
    border: 3px solid #0ff;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px #0ff;
}
h1 { font-size: 4rem; margin: 0 0 20px 0; text-shadow: 0 0 15px #0ff; }
.controls { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
}
.controls button { margin: 0; width: 100%; padding: 15px 0; font-size: 1rem; }
.slot-machine-ui {
    background: #111;
    border: 4px solid #f0f;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 20px #f0f;
}
.reels-container {
    display: flex;
    justify-content: space-around;
    background-color: #000;
    border: 2px solid #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}
.reel {
    font-size: 2.5rem;
    background-color: #fff;
    color: #000;
    padding: 10px;
    border-radius: 3px;
    width: 30%;
    text-align: center;
    border: inset 3px #ccc;
}
#reward-display {
    background: #000;
    border: 2px solid #ff0;
    color: #ff0;
    padding: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    text-shadow: 0 0 10px #ff0;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
}
.spinning { animation: blurSpin 0.1s infinite linear; }
@keyframes blurSpin {
    0% { transform: translateY(-5px); filter: blur(2px); }
    50% { transform: translateY(5px); filter: blur(2px); }
    100% { transform: translateY(-5px); filter: blur(2px); }
}