.duckcade-shell {
    display: grid;
    gap: 1.5rem;
}

.duckcade-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr);
    gap: 1.25rem;
    align-items: start;
}

.duckcade-hero-card h1,
.duckcade-stage-head h2,
.duckcade-sidebar-card h3 {
    margin: 0;
}

.duckcade-hero-meta,
.duckcade-sidebar {
    display: grid;
    gap: .9rem;
}

.duckcade-stage-card {
    display: grid;
    gap: 1rem;
}

.duckcade-stage-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.duckcade-stage-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .78fr);
    gap: 1rem;
    align-items: start;
}

.duckcade-canvas-wrap {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 620px;
    background:
        radial-gradient(circle at top, rgba(80, 169, 255, 0.22), transparent 36%),
        linear-gradient(180deg, rgba(8, 21, 43, 0.94), rgba(6, 13, 27, 0.98));
    border: 1px solid rgba(118, 174, 255, 0.22);
    box-shadow: 0 24px 60px rgba(3, 10, 24, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#duckcade-game {
    width: 100%;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#duckcade-game canvas {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: auto;
}

.duckcade-locked-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: .45rem;
    text-align: center;
    background: rgba(4, 9, 20, 0.6);
    backdrop-filter: blur(10px);
    z-index: 5;
}

.duckcade-locked-overlay strong {
    font-size: 1.1rem;
}

.duckcade-sidebar-card {
    background: rgba(8, 18, 39, 0.88);
    border: 1px solid rgba(119, 173, 255, 0.18);
    border-radius: 24px;
    padding: 1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    display: grid;
    gap: .8rem;
}

.duckcade-prize-list,
.duckcade-win-feed {
    display: grid;
    gap: .65rem;
}

.duckcade-prize-row,
.duckcade-win-row {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: baseline;
    padding: .7rem .85rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

.duckcade-prize-row strong,
.duckcade-win-row strong {
    display: block;
}

.duckcade-prize-row span,
.duckcade-win-row span,
.duckcade-win-row small {
    color: rgba(222, 234, 255, 0.75);
}

.duckcade-login-card {
    padding: 1.1rem;
}

.duckcade-login-card .actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.duckcade-login-card .button-full {
    min-width: 180px;
}

@media (max-width: 1100px) {
    .duckcade-stage-layout,
    .duckcade-hero-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .duckcade-stage-head {
        flex-direction: column;
    }

    .duckcade-canvas-wrap,
    #duckcade-game {
        min-height: 520px;
    }
}


.duckcade-shell--slot {
    width: calc(100vw - 1rem);
    max-width: 1720px;
    margin-left: calc(50% - 50vw + .5rem);
}

.duckcade-stage-layout--slot {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
}

.duckcade-canvas-wrap--slot {
    min-height: clamp(560px, calc(100dvh - 170px), 980px);
    border-radius: 40px;
    background:
        radial-gradient(circle at 50% 0%, rgba(99, 33, 168, 0.18), transparent 34%),
        radial-gradient(circle at 50% 100%, rgba(247, 201, 72, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(5, 10, 20, 0.98), rgba(7, 13, 24, 0.99));
    border: 1px solid rgba(118, 174, 255, 0.2);
    box-shadow: 0 30px 90px rgba(4, 12, 32, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.duckcade-game--slot {
    min-height: clamp(560px, calc(100dvh - 170px), 980px);
    height: clamp(560px, calc(100dvh - 170px), 980px);
}

.duckcade-sidebar--slot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.duckcade-fullscreen-trigger {
    white-space: nowrap;
}

.duckcade-slot-popup-close {
    display: none;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1231;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(5, 11, 23, 0.84);
    color: #f7fbff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(0,0,0,0.24);
}

.duckcade-slot-modal {
    position: fixed;
    inset: 0;
    z-index: 1220;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(1, 5, 14, 0.82);
    backdrop-filter: blur(4px);
}

.duckcade-slot-modal.is-open {
    display: grid;
}

.duckcade-slot-modal-stage {
    position: relative;
    z-index: 1;
    width: calc(100vw - 40px);
    height: calc(100dvh - 40px);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.duckcade-slot-modal.is-open .duckcade-slot-popup-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.slot-popup-open {
    overflow: hidden;
}


@media (max-width: 1320px) {
    .duckcade-shell--slot {
        width: 100%;
        max-width: none;
        margin-left: 0;
    }

    .duckcade-sidebar--slot {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .duckcade-canvas-wrap--slot,
    .duckcade-game--slot {
        min-height: min(82dvh, 760px);
        height: min(82dvh, 760px);
    }

    .duckcade-slot-modal {
        padding: 10px;
    }

    .duckcade-slot-modal-stage {
        width: calc(100vw - 20px);
        height: calc(100dvh - 20px);
    }

    .duckcade-slot-popup-close {
        top: 10px;
        right: 10px;
        width: 46px;
        height: 46px;
    }
}
