@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }

h1, h2, h3, h4, h5, h6 {
    font-size: 1em;
    font-weight: normal;
}

body {
    background-color: #000;
    text-align: center;
    font-family: sans-serif;
    color: #fff;
    margin: 0;
    padding: 0;
}

.right-scroll-area {
    width: 100%;
    position: relative;
}

main {
    padding-bottom: 50px;
}

main h1 {
    text-align: center;
    padding: 40px 0 10px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.1em;
    text-shadow: 0 0 15px rgba(0, 191, 255, 0.5);
}

#slot-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: nowrap;
    max-width: 1250px;
    margin: 0 auto;
    padding: 20px;
}

.ad-box {
    flex: 0 0 160px;
    min-height: 600px;
    border: 1px solid #333;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    padding: 10px;
}

.slot-box {
    flex: 1;
    min-width: 820px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, #111 0%, #000 100%);
    padding: 40px 30px;
    border-radius: 20px;
    border: 2px solid #333;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    position: relative;
}

#score {
    order: -2;
    font-family: 'Courier New', Courier, monospace;
    font-size: 56px !important;
    color: #00f3ff;
    background: #050505;
    padding: 15px 50px;
    border-radius: 10px;
    border: 3px solid #00bfff;
    display: inline-block;
    margin: 0 0 20px 0;
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.6);
    font-weight: bold;
    text-shadow: 0 0 15px rgba(0, 191, 255, 0.8);
}

#result {
    order: -1;
    margin: 10px 0 30px 0;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.msg-main {
    font-size: 3.5rem !important;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 20px #00bfff;
    display: block;
}

.congrats {
    font-size: 6rem !important;
    font-weight: 900;
    color: #ffea00;
    text-shadow: 0 0 30px #ff3300, 0 0 50px #ffea00;
    display: block;
    animation: bounce 0.5s infinite alternate;
}

.sub-msg {
    font-size: 2.2rem;
    color: #00f3ff;
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.slot {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.reel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px;
}

.reel-window {
    width: 250px;
    height: 250px;
    overflow: hidden;
    border: 6px solid #222;
    border-radius: 12px;
    background: #050505;
    position: relative;
    box-shadow: 
        0 0 20px rgba(0, 191, 255, 0.2),
        inset 0 10px 20px rgba(0, 0, 0, 0.8),
        inset 0 -10px 20px rgba(0, 191, 255, 0.1);
}

.reel-window::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
    z-index: 2;
}

.reel-strip {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.reel-strip img {
    width: 250px !important;
    height: 250px !important; 
    display: block;
    object-fit: cover;
}

@keyframes slide {
    0% { transform: translateY(0); }
    100% { transform: translateY(-80%); }
}

.spin {
    animation: slide 1.5s linear infinite;
    animation-fill-mode: forwards;
}

.glow {
    box-shadow: 0 0 30px 10px #00bfff !important;
    border-color: #00f3ff !important;
    transform: scale(1.05);
    transition: 0.3s ease;
}

button {
    padding: 15px 30px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.4) 0%, rgba(0, 0, 0, 0.9) 50%, rgba(0, 0, 0, 1) 100%) !important;
    color: #00f3ff !important; 
    border: 2px solid #00f3ff !important;
    border-radius: 8px;
    margin: 10px;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.4), 
                inset 0 2px 10px rgba(255, 255, 255, 0.3) !important;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.8);
    outline: none;
}

button:hover {
    background: #00f3ff !important;
    color: #000 !important;
    box-shadow: 0 0 40px #00f3ff, inset 0 0 15px #fff !important;
    transform: translateY(-2px);
}

.control {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

#howto {
    margin-top: 60px;
    padding: 20px;
    font-size: 20px;
    line-height: 1.8;
    text-align: left;
}

#howto h2 {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD700;
    text-align: center;
}

.site-footer {
    margin-top: 100px;
    text-align: left;
}

@keyframes bounce {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

@media (max-width: 768px) {
    main h1 {
        font-size: 1.5rem;
        padding: 20px 10px;
    }
    #slot-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
        gap: 15px !important;
    }
    .ad-box { 
        width: 100% !important; 
        min-height: 100px !important; 
        order: 2;
        border: none;
    }
    .slot-box { 
        width: 100% !important; 
        min-width: 0 !important; 
        order: 1;
        padding: 20px 5px !important;
        border-radius: 10px;
    }
    .slot {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 5px !important;
    }
    .reel {
        width: 32% !important;
        flex: 0 0 32% !important;
    }
    .reel-window {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        border-width: 3px !important;
    }
    .reel-strip img {
        width: 100% !important;
        height: 100% !important; 
        display: block !important;
        object-fit: cover !important;
    }
    button {
        padding: 10px 2px !important;
        font-size: 0.7rem !important; 
        width: 100% !important;
        margin: 5px 0 !important;
    }
    .control button {
        width: 45% !important;
        font-size: 1.1rem !important;
        padding: 12px 0 !important;
    }
    #score {
        margin-top: 10px !important; 
        font-size: 1.8rem !important;
        padding: 10px 30px !important;
    }
    .msg-main { font-size: 1.5rem !important; }
    .congrats { font-size: 2.5rem !important; }
    #howto { font-size: 0.9rem !important; }
}
