body.cult-bingo-page {
    margin: 0;
    min-height: 100vh;
    background-color: transparent !important;
}

body.cult-bingo-page .cult-bingo-root {
    min-height: 100vh;
}

.cult-bingo-root,
.cult-bingo-root *,
.cult-bingo-root *::before,
.cult-bingo-root *::after {
    box-sizing: border-box;
    user-select: none;
}

.cult-bingo-root {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: sans-serif;
}

.cult-bingo-root #bingo-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 auto;
    min-height: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 24px 16px 40px;
    background-color: #1a1a1a;
    flex-direction: column;
}

.cult-bingo-root .cult-bingo-toolbar {
    margin-bottom: 20px;
    text-align: center;
}

.cult-bingo-root #bingo-card-wrapper {
    overflow: auto;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
}

.cult-bingo-root #bingo-card {
    display: grid;
    grid-template-columns: repeat(5, 120px);
    grid-template-rows: repeat(5, 120px);
    gap: 5px;
    width: max-content;
    background-color: #1a1a1a;
}

.cult-bingo-root .bingo-square {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border: 2px solid #888888;
    background: #333333;
    color: #ffffff;
    text-align: center;
    cursor: pointer;
}

.cult-bingo-root .rule-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    font-size: 0.8em;
    cursor: pointer;
}

.cult-bingo-root .bingo-square.checked {
    background-color: #aa0b00;
    color: #ffffff;
    border-color: #680000;
}

.cult-bingo-root #winning-confirmation {
    position: absolute;
    inset: 0;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.cult-bingo-root #cultist-name {
    font-size: 1.5rem;
    font-family: inherit;
}

.cult-bingo-root #winning-confirmation.visible {
    opacity: 1;
    pointer-events: auto;
}

.cult-bingo-root #winning-confirmation-message {
    margin: 5px;
    padding: 20px;
    border-radius: 10px;
    background-color: #004206;
    color: #ffffff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    font-size: 1.5em;
    text-align: center;
}

.cult-bingo-root #uploading-overlay {
    position: absolute;
    inset: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 2em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(2px);
}

.cult-bingo-root #uploading-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.cult-bingo-root #timestamp {
    width: 100%;
    margin-top: 10px;
    color: #f0f0f0;
    font-size: 0.8em;
    text-align: center;
}

.cult-bingo-root .hover-pop {
    transition: transform 0.15s ease;
}

.cult-bingo-root .hover-pop:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.cult-bingo-root .hover-pop:active {
    transform: scale(0.95);
}

.cult-bingo-root .button {
    height: 2em;
    margin: 10px;
    padding: 5px 7px;
    border-radius: 5px;
    font-size: 1.5em;
    font-weight: bold;
}

.cult-bingo-root .button.primary {
    border: 5px solid #006b96;
    background-color: #006b96;
    color: #ffffff;
}

.cult-bingo-root .button.secondary {
    border: 5px solid #006b96;
    background-color: #333333;
    color: #006b96;
}

.cult-bingo-root.no-hover .bingo-square.hover-pop:hover,
.cult-bingo-root.no-hover .bingo-square.hover-pop:active {
    transform: none;
    box-shadow: none;
}

@media (max-width: 700px) {
    .cult-bingo-root #bingo-container {
        padding: 16px 10px 28px;
    }

    .cult-bingo-root #winning-confirmation-message {
        font-size: 1.125em;
    }

    .cult-bingo-root .button {
        font-size: 1.25em;
    }
}
