/* DotChain – game-specific styles (theme-aware) */

.game-content {
    background: var(--surface-color, #161B22);
    color: var(--text-primary, #F8FAFC);
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.stats {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--accent, #ffae00);
    font-weight: bold;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.dot-chain-grid {
    display: grid;
    gap: 1px;
    /* background: var(--accent, #ffcc00); */
    padding: 2px;
    border-radius: 4px;
    /* border: 2px solid var(--accent, #ffcc00); */
    touch-action: none;
}

.dot-cell {
    min-width: 0;
    min-height: 0;
    background: var(--dot-cell-bg, #2E2E2E);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.dot-chain-grid-wrap {
    position: relative;
    display: inline-block;
}

.dot-chain-grid-wrap svg.chain-lines {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.dot-chain-dots {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
    display: grid;
    gap: 1px;
    padding: 2px;
}

.dot-chain-dots .dot-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot-chain-dots .dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.dot-cell.drag-source {
    box-shadow: inset 0 0 0 2px rgba(255, 182, 193, 0.95);
}

.level-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.level-controls select,
.level-controls button {
    padding: 8px 16px;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid var(--border-color, rgba(255,255,255,0.2));
    background: var(--button-bg, #282828);
    color: var(--accent, #ffae00);
    cursor: pointer;
    font-weight: bold;
}

.level-controls button:hover {
    background: var(--header-footer-color, #282828);
    border-color: var(--accent, #ffae00);
}

.hint {
    color: var(--text-secondary, #8B949E);
    font-size: 0.85rem;
    margin-top: 10px;
    text-align: center;
    max-width: 400px;
}
