body {
    font-family: 'Roboto Mono', monospace;
    background: #2a2a2a;
    color: #e0e0e0;
    margin: 0;
    padding: 20px;
}

#bingo-stage {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 12px;
}

#board-wrap {
    position: relative;
    width: fit-content;
    margin: 20px auto;
    background-color: transparent;
    border-radius: 0;
    border: 0;
}

#board-wrap.has-board {
    background-color: #303030;
    border-radius: 16px;
    border: 4px solid #333;
}

#bingo-controls {
    width: fit-content;
    margin: 12px auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

#bingo-board {
    width: max-content;
    border-collapse: separate;
    border-spacing: 8px;
    table-layout: fixed;
}

#bingo-board td {
    width: 128px;
    min-width: 128px;
    height: 128px;
}

.bingo-input {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    box-sizing: border-box;
    text-align: center;
    font-size: 1rem;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 8px;
    background: #414141;
    color: #fff;
    outline: none;
    resize: none;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.bingo-input.bingo-play-mode {
    cursor: pointer;
}

#bingo-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bingo-input.marked {
    background: #7bd389;
    color: #111;
}

.bingo-input.line {
    background: #ecb152;
    color: #fff;
}