:root {
    --width: 500px;
    --cell-size: 90px;
    --border: 1px solid #000;
}

#bingo-card {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(6, var(--cell-size)); /* 1 header + 5 rows */
    width: var(--width);
    background: black;
    border-radius: 10px;
    padding: 10px;
    gap: 0;
}

.bingo-header {
    background: #222;
    color: #fff;
    font-size: 2em;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--border);
    box-sizing: border-box;
}

.bingo-cell {
    background: #fafafa;
    border: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    height: 100%;
}

.bingo-cell img {
    max-width: 60px;
    max-height: 60px;
    display: block;
    margin: 0 auto;
}

.cell-text {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 0 4px;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
}