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

html, body {
    background-color: #0c0c0c;
}

body {
    font-family: 'Josefin Sans', sans-serif;
    width: 1920px;
    height: 1080px;
    overflow: hidden;
}

.overlay {
    width: 1920px;
    height: 1080px;
    position: relative;
    background-color: transparent;
}

/* Background frame using SVG mask for transparent cutouts */
.overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0c0c0c;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1920' height='1080'%3E%3Crect width='100%25' height='100%25' fill='white'/%3E%3Crect x='30' y='135' width='1440' height='755' fill='black'/%3E%3Crect x='1500' y='135' width='390' height='305' fill='black'/%3E%3C/svg%3E");
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1920' height='1080'%3E%3Crect width='100%25' height='100%25' fill='white'/%3E%3Crect x='30' y='135' width='1440' height='755' fill='black'/%3E%3Crect x='1500' y='135' width='390' height='305' fill='black'/%3E%3C/svg%3E");
    z-index: 0;
    pointer-events: none;
}

/* Top Bar */
.top-bar {
    position: absolute;
    top: 15px;
    left: 30px;
    right: 450px;
    height: 100px;
    background-color: #101110;
    display: flex;
    align-items: center;
    padding: 0 30px;
    gap: 40px;
    overflow: hidden;
    z-index: 1;
}

.cta-box {
    background-color: #c3131f;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cta-text {
    display: inline-block;
    transform-origin: left bottom;
    will-change: transform, opacity;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: space-around;
}

.social-label {
    color: #c3131f;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    will-change: transform, opacity;
}

.social-item {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    transform-origin: left bottom;
    will-change: transform, opacity;
}


.social-item .highlight {
    color: #c3131f;
    font-weight: 700;
}

/* Main Content Area */
.main-content {
    position: absolute;
    top: 135px;
    left: 30px;
    right: 450px;
    bottom: 190px;
    background-color: transparent;
    pointer-events: none;
}

/* Bottom Bar */
.bottom-left {
    position: absolute;
    bottom: 15px;
    left: 30px;
    width: 710px;
    height: 155px;
    background-color: #101110;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    gap: 20px;
    z-index: 1;
}

.winner-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 220px;
}

.winner-label {
    background-color: #c3131f;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.winner-name {
    color: white;
    font-size: 38px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    margin-top: 5px;
}

.winner-subtitle {
    color: #555;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    background-color: #0c0c0c;
    padding: 5px 0;
    border-radius: 12px;
    position: relative;
    height: 130px;
    overflow: hidden;
}

.spinner-container::before,
.spinner-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 10;
    pointer-events: none;
}

.spinner-container::before {
    left: 0;
    background: linear-gradient(to right, #0c0c0c 0%, #0c0c0c 20%, transparent 100%);
    border-radius: 12px 0 0 12px;
}

.spinner-container::after {
    right: 0;
    background: linear-gradient(to left, #0c0c0c 0%, #0c0c0c 20%, transparent 100%);
    border-radius: 0 12px 12px 0;
}

.spinner-arrow {
    color: #444;
    font-size: 10px;
    z-index: 5;
}

.spinner-track {
    width: 100%;
    height: 85px;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-items {
    display: flex;
    gap: 10px;
    position: absolute;
    left: 50%;
    will-change: transform;
}

.spinner-item {
    width: 78px;
    height: 78px;
    flex-shrink: 0;
    border: 3px solid #c3131f;
    overflow: hidden;
    border-radius: 6px;
}

.spinner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empty-slot {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    color: #444;
    font-size: 36px;
    font-weight: 700;
}

.bottom-right {
    position: absolute;
    bottom: 15px;
    left: 760px;
    right: 450px;
    height: 155px;
    background-color: #101110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: hidden;
    z-index: 1;
}

.leaderboard-box {
    position: absolute;
    background-color: #c3131f;
    color: white;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding: 20px 30px;
    width: 95%;
    height: 65%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaderboard-podium {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.podium-amount {
    color: white;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
}

.podium-rank {
    background-color: #c3131f;
    color: #101110;
    font-size: 24px;
    font-weight: 700;
    padding: 22px 55px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.podium-item.first .podium-rank {
    padding: 28px 70px;
    font-size: 28px;
}

.sidebar {
    position: absolute;
    top: 15px;
    right: 30px;
    bottom: 15px;
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1;
}

.sidebar-box {
    background-color: #101110;
}

.box-1 {
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    gap: 8px;
}

.giveaway-label {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.giveaway-label .keyword {
    color: #c3131f;
}

.giveaway-box {
    flex: 1;
    width: 70%;
    background-color: #c3131f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer {
    font-size: 38px;
    font-weight: 700;
    color: white;
    letter-spacing: 3px;
    text-align: center;
    width: 100%;
}

.box-2 {
    height: 305px;
    background-color: transparent;
    pointer-events: none;
}

.box-3 {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
    min-height: 0;
    overflow: hidden;
}

.chat-header {
    background-color: #c3131f;
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 15px;
    flex-shrink: 0;
}

.chat-content {
    flex: 1;
    background-color: #101110;
    padding: 8px 10px 8px 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.chat-content::-webkit-scrollbar {
    display: none;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    flex-shrink: 0;
}

.username {
    background-color: #c3131f;
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 11px;
}

.message-text {
    background-color: #1c1d1c;
    color: white;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    padding: 7px 11px;
}

.box-4 {
    height: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.vip-box {
    background-color: #c3131f;
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding: 25px 30px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.vip-text {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG Grid */
.grid-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}
