@font-face {
    font-family: "LuckyMontserrat";
    src: url("Montserrat-Black.otf") format("opentype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --stage-width: 1920px;
    --stage-height: 1080px;
    --gold: #ffd36a;
    --deep-red: #5f0205;
    --app-font: "LuckyMontserrat", Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
    font-family: var(--app-font);
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #120204;
    font-family: var(--app-font);
}

button {
    font: inherit;
}

.viewport {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.stage {
    position: relative;
    width: var(--stage-width);
    height: var(--stage-height);
    overflow: hidden;
    transform-origin: center center;
    background-color: #8e0207;
    background-image: var(--stage-bg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: #fff;
}

.draw-area {
    position: absolute;
    left: 0px;
    top: 355px;
    width: 1920px;
    height: 455px;
}

.prize-head {
    display: none;
}

.prize-title {
    color: var(--gold);
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 4px 4px rgba(0, 0, 0, .45), 0 0 18px rgba(255, 214, 96, .55);
}

.prize-count {
    color: #fff2c5;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .65);
}

.draw-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 455px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease;
}

.draw-panel.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.draw-panel-one {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 16px 12px;
    padding: 0 20px;
}

.draw-panel-one .winner-slot {
    flex: 0 0 310px;
    padding: 0 25px;
}

.draw-panel-one .winner-slot::after {
    inset: 18px 10px 18px 10px;
}

.draw-panel-one .slot-number {
    display: none;
}


.draw-panel-two {
    display: grid;
    place-items: center;
}

.winner-slot {
    position: relative;
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: center;
    min-width: 0;
    height: 100px;
    padding: 0 48px 0 36px;
    overflow: hidden;
    isolation: isolate;
    background-image: url("../image/frame10.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
   
}

.winner-slot::after {
    content: "";
    position: absolute;
    inset: 18px 42px 18px 104px;
    z-index: -1;
    border-radius: 999px;
    
}

.winner-slot.is-spinning .slot-name {
    color: #7d0101;
    
}

.winner-slot.is-winner {
    animation: winnerPulse .8s ease both;
}

.winner-slot-main {
    width: 400px;
    height: 120px;
    grid-template-columns: 1fr;
    padding: 0 40px;
    background-image: url("../image/frame.png");
}

.winner-slot-main::after {
    inset: 32px 108px 36px 108px;
}

.slot-number {
    display: grid;
    place-items: center;
    width: 74px;
    height: 52px;
    color: var(--gold);
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .7);
}

.winner-slot-main .slot-number {
    display: none;
}

.slot-name {
    min-width: 0;
    overflow: visible;
    padding: .16em 0 .12em;
	color: #7d0101;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.22;
    text-align: center;
    text-transform: uppercase;
    
    letter-spacing: 0;
    text-shadow: none;
}

.winner-slot-main .slot-name {
    font-size: 30px;
}

.controls {
    display: none;
}

.controls button {
    min-width: 112px;
    height: 48px;
    border: 1px solid rgba(255, 218, 115, .75);
    border-radius: 6px;
    color: #4d0203;
    background: linear-gradient(#ffe6a1, #d79b23);
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .25);
}

.controls button:disabled {
    cursor: default;
    opacity: .55;
}

.status-line {
    position: absolute;
    left: 20px;
    bottom: 10px;
    max-width: 720px;
    color: #e2e2e2;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.status-line.is-error {
    color: #fffbde;
    text-shadow: 0 2px 8px rgba(95, 2, 5, .75);
}

@keyframes winnerPulse {
    0% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.035);
    }

    100% {
        transform: scale(1);
    }
}
