.sub-wrapper {
    max-width: 680px;
    margin: 20px auto;
    padding: 20px;
    background: #0f172a;
    border-radius: 16px;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    user-select: none;
    box-sizing: border-box;
}

.sub-wrapper * {
    box-sizing: border-box;
}

.sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #334155;
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.sub-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #38bdf8; /* Ovde upišite željenu boju (npr. #38bdf8 za svetloplavu, #ffffff za belu, itd.) */
}

.sub-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sub-btn:hover {
    background: #1d4ed8;
}

.sub-message {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #38bdf8;
    min-height: 24px;
    margin-bottom: 15px;
}

.sub-boards-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.sub-board-box {
    text-align: center;
}

.sub-board-box h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #94a3b8;
}

/* Fiksna veličina tabli i polja sprečava pomeranje pri akcijama */
.sub-grid {
    display: grid;
    grid-template-columns: repeat(10, 26px);
    grid-template-rows: repeat(10, 26px);
    gap: 2px;
    background: #1e293b;
    padding: 4px;
    border-radius: 8px;
    width: 288px;
    height: 288px;
    margin: 0 auto;
}

.sub-cell {
    width: 26px;
    height: 26px;
    background: #334155;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.sub-cell:hover {
    background: #475569;
}

.sub-cell.ship {
    background: #3b82f6;
}

.sub-cell.hit {
    background: #dc2626 !important;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
}

.sub-cell.miss {
    background: #1e293b !important;
    position: relative;
}

.sub-cell.miss::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
    display: block;
}